Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ext/ExtensionParser.java @ 8248:c4c3f50fa9c2
Fixes for codegen builtins support.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 12 Mar 2013 11:37:32 +0100 |
parents | 5e3d1a68664e |
children | 0905d796944a |
comparison
equal
deleted
inserted
replaced
8247:5b08b0f4d338 | 8248:c4c3f50fa9c2 |
---|---|
86 if (extensions.containsKey(processorName)) { | 86 if (extensions.containsKey(processorName)) { |
87 processor = extensions.get(processorName); | 87 processor = extensions.get(processorName); |
88 } else { | 88 } else { |
89 AnnotationMirror foundExtension = Utils.findAnnotationMirror(context.getEnvironment(), mirror.getAnnotationType().asElement(), ExtensionAnnotation.class); | 89 AnnotationMirror foundExtension = Utils.findAnnotationMirror(context.getEnvironment(), mirror.getAnnotationType().asElement(), ExtensionAnnotation.class); |
90 if (foundExtension != null) { | 90 if (foundExtension != null) { |
91 String className = Utils.getAnnotationValueString(foundExtension, "processorClassName"); | 91 String className = Utils.getAnnotationValue(String.class, foundExtension, "processorClassName"); |
92 Class<?> processorClass; | 92 Class<?> processorClass; |
93 try { | 93 try { |
94 processorClass = Class.forName(className); | 94 processorClass = Class.forName(className); |
95 } catch (ClassNotFoundException e) { | 95 } catch (ClassNotFoundException e) { |
96 context.getLog().error(element, mirror, "Could not find processor class '%s' configured in '@%s'.", className, processorName); | 96 context.getLog().error(element, mirror, "Could not find processor class '%s' configured in '@%s'.", className, processorName); |