# HG changeset patch # User Thomas Wuerthinger # Date 1422410302 -3600 # Node ID 9470dcef2d5930fb857c085db120581600f6a3b6 # Parent ec0733b5a90aa0ef59f546c08647383897fc8bf8 Do not enforce final constraint for macro node classes. diff -r ec0733b5a90a -r 9470dcef2d59 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java Wed Jan 28 02:34:14 2015 +0100 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java Wed Jan 28 02:58:22 2015 +0100 @@ -188,9 +188,6 @@ */ private static void checkClass(Class c, MetaAccessProvider metaAccess) { if (Node.class.isAssignableFrom(c)) { - if (Modifier.isFinal(c.getModifiers())) { - throw new AssertionError(String.format("Node subclass %s must not be final", c.getName())); - } if (c.getAnnotation(NodeInfo.class) == null) { throw new AssertionError(String.format("Node subclass %s requires %s annotation", c.getName(), NodeClass.class.getSimpleName())); }