changeset 16836:c47522db4c00

check that generated Node classes exist
author Doug Simon <doug.simon@oracle.com>
date Thu, 14 Aug 2014 23:26:14 +0200
parents b3a60e14ec37
children a4ab20ebeed5
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java	Thu Aug 14 23:25:26 2014 +0200
+++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java	Thu Aug 14 23:26:14 2014 +0200
@@ -183,6 +183,11 @@
                 if (c.getAnnotation(NodeInfo.class) == null) {
                     throw new AssertionError(String.format("Node subclass %s requires %s annotation", c.getName(), NodeClass.class.getSimpleName()));
                 }
+                try {
+                    Class.forName(c.getName() + "Gen");
+                } catch (ClassNotFoundException e) {
+                    throw new AssertionError(String.format("Missing generated Node class %s", c.getName() + "Gen"));
+                }
             }
         }
     }