Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java @ 9224:b69312e4eceb
Minor fix for private template types.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 20 Apr 2013 12:22:54 +0200 |
parents | 97ad6d3e7557 |
children | 9d29e5aa54d2 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java Sat Apr 20 12:17:47 2013 +0200 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeParser.java Sat Apr 20 12:22:54 2013 +0200 @@ -128,16 +128,10 @@ } AnnotationMirror methodNodes = Utils.findAnnotationMirror(processingEnv, templateType, NodeClass.class); - if (methodNodes == null && !Utils.isAssignable(templateType.asType(), context.getTruffleTypes().getNode())) { return null; // not a node } - if (templateType.getModifiers().contains(Modifier.PRIVATE)) { - // TODO error message here!? - return null; // not visible, not a node - } - List<TypeElement> lookupTypes = findSuperClasses(new ArrayList<TypeElement>(), templateType); Collections.reverse(lookupTypes);