Mercurial > hg > graal-compiler
changeset 7800:418635acf875
Fixed a new method was added to Element in JDK8. (getAnnotationsByType)
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 18 Feb 2013 18:33:04 +0100 |
parents | 5ecf528d4131 |
children | 86f502220794 |
files | graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ast/CodeElement.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ast/CodeElement.java Mon Feb 18 12:22:00 2013 +0100 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ast/CodeElement.java Mon Feb 18 18:33:04 2013 +0100 @@ -103,6 +103,12 @@ return annotations; } + /* Support JDK8 langtools. */ + @SuppressWarnings("unused") + public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { + throw new UnsupportedOperationException(); + } + @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { throw new UnsupportedOperationException();