src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/NodeClass.java
changeset 57537 ecc6e394475f
parent 54328 37648a9c4a6a
child 58299 6df94ce3ab2f
equal deleted inserted replaced
57536:67cce1b84a9a 57537:ecc6e394475f
   124         try {
   124         try {
   125             Field field = clazz.getDeclaredField("TYPE");
   125             Field field = clazz.getDeclaredField("TYPE");
   126             field.setAccessible(true);
   126             field.setAccessible(true);
   127             return (NodeClass<T>) field.get(null);
   127             return (NodeClass<T>) field.get(null);
   128         } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) {
   128         } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) {
   129             throw new RuntimeException(e);
   129             throw new RuntimeException("Could not load Graal NodeClass TYPE field for " + clazz, e);
   130         }
   130         }
   131     }
   131     }
   132 
   132 
   133     public static <T> NodeClass<T> get(Class<T> clazz) {
   133     public static <T> NodeClass<T> get(Class<T> clazz) {
   134         int numTries = 0;
   134         int numTries = 0;