jai-imageio / jai-imageio-jpeg2000

JPEG2000 support for Java Advanced Imaging Image I/O Tools API
Other
74 stars 56 forks source link

OpenJDK11 fix: Avoid runFinalizersOnExit in DO_TIMING #36

Closed stain closed 3 years ago

stain commented 3 years ago

Disable DO_TIMING blocks for OpenJDK 11 support

The code would no longer compile as long deprecated System.runFinalizersOnExit was removed by JDK-8198249 in Open JDK 11.

As using this timing requires code modification and was never used "live" in this patch I added a /* UNCOMMENT */ comment block around the offending code - it can be enabled if compiling on Open JDK 8.

Based on #15 by @rleigh-codelibre