puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

ExtendedStackTraceHotSpot incorrectly limited to Java 1.8 and Java 9 #323

Closed doctorpangloss closed 5 years ago

doctorpangloss commented 5 years ago
            final String javaVersion = System.getProperty("java.version");
            if (!javaVersion.startsWith("1.8") && !javaVersion.startsWith("8.") && !javaVersion.startsWith("1.9") && !javaVersion.startsWith("9."))
                throw new IllegalStateException("UnsupportedJavaVersion");
            if (!System.getProperty("java.vm.name").toLowerCase().contains("hotspot"))
                throw new IllegalStateException("Not HotSpot");

This needs to be changed.

doctorpangloss commented 5 years ago

it's actually pretty hard for me to understand when this would and would not be appropriate to fix