puniverse / quasar

Fibers, Channels and Actors for the JVM

Home Page:http://docs.paralleluniverse.co/quasar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExtendedStackTraceHotSpot incorrectly limited to Java 1.8 and Java 9

doctorpangloss opened this issue · comments

            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.

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