BOSTON (AP) — Lawyers for reputed Boston gangster James "Whitey" Bulger will be in court to ask a judge to reverse an earlier ruling barring Bulger from claiming immunity as a defense at his trial.

Bulger claims a federal prosecutor gave him immunity for his crimes.

Judge Richard Stearns ruled that Bulger couldn't present evidence about his claim that the immunity deal applied to future crimes he committed.

Stearns was later removed from the case because of a potential conflict of interest. Stearns worked in the U.S. attorney's office when Bulger says another now-deceased prosecutor gave him the immunity deal.

Judge Denise Casper has scheduled a hearing Friday to hear arguments from Bulger's lawyers.

Bulger is charged with participating in 19 murders. His trial is scheduled to begin in June.

Prosecutors have called Bulger's immunity claim "absurd."