src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/NodeClass.java
equal
deleted
inserted
replaced
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; |