jj2000: Fix compile on Java 8

The original code was causing javac to throw an AssertionError. Working
around the labelled break (by using a flag) seems to fix this fine.
Trying to minimize differences against the original code.