Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeSystemParser.java @ 22327:4a43dc00a654
added workaround based on JDK-8075793 to allow compilation with JDK9 javac (2nd attempt)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 26 Oct 2015 14:07:38 +0100 |
parents | 6cec0097107f |
children |
comparison
equal
deleted
inserted
replaced
22326:6cec0097107f | 22327:4a43dc00a654 |
---|---|
63 } | 63 } |
64 | 64 |
65 /** | 65 /** |
66 * @see "https://bugs.openjdk.java.net/browse/JDK-8039214" | 66 * @see "https://bugs.openjdk.java.net/browse/JDK-8039214" |
67 */ | 67 */ |
68 @SuppressWarnings("unused") | |
68 private static List<Element> newElementList(List<? extends Element> src) { | 69 private static List<Element> newElementList(List<? extends Element> src) { |
69 List<Element> workaround = new ArrayList<>(src); | 70 List<Element> workaround = new ArrayList<Element>(src); |
70 return workaround; | 71 return workaround; |
71 } | 72 } |
72 | 73 |
73 @Override | 74 @Override |
74 protected TypeSystemData parse(Element element, AnnotationMirror mirror) { | 75 protected TypeSystemData parse(Element element, AnnotationMirror mirror) { |