package com.headius.invokebinder;

/**
 * Created by headius on 6/27/17.
 */
public class Util {
    public static boolean isJava9() {
        try {
            return System.getProperty("java.specification.version", "").equals("9");
        } catch (Exception e) {
            return false;
        }
    }
}

@@ -39,37 +39,46 @@
 %0A * 
-Created by headius on 6/27/17
+Utilities used by InvokeBinder classes
 .%0A *
@@ -129,19 +129,56 @@
 ean 
+IS_JAVA9;%0A%0A    static %7B%0A        boolean 
 isJava9
-() %7B
+;
 %0A   
@@ -204,79 +204,69 @@
     
-return System.getProperty(%22java.specification.version%22, %22%22).equals(%229%22)
+Class.forName(%22java.lang.Module%22);%0A            isJava9 = true
 ;%0A  
@@ -311,14 +311,17 @@
     
-return
+isJava9 =
  fal
@@ -334,16 +334,114 @@
       %7D%0A
+        IS_JAVA9 = isJava9;%0A    %7D%0A%0A    public static boolean isJava9() %7B%0A        return IS_JAVA9;%0A
     %7D%0A%7D%0A

Fix this to run on all Java 9+ JVMs