High-profile criminal barrister Charles Waterstreet may face contempt of court charges for alleged social media posts which had the potential to prejudice the trial of his client Glen McNamara and co-accused Roger Rogerson.

On Thursday, Justice Geoffrey Bellew formally vacated the trial of Mr McNamara and Mr Rogerson for the murder of university student Jamie Gao during a botched drug deal.

Charles Waterstreet (left) arrives at the murder trial of Roger Rogerson and Glen McNamara in July. Credit:Ben Rushton

The trial was scheduled to go ahead on Monday, but will not proceed until early next year.

Justice Bellew ordered the registrar of the Common Law Division of the Supreme Court to investigate Mr Waterstreet for contempt of court.