# HG changeset patch # User Doug Simon # Date 1408746110 -7200 # Node ID 451468f7340b157f0e2a4dd2443028b820710e2c # Parent 34b000f69af3705f6f73748063efce7e97fe96c7 workaround for a problem javac has resolving symbols in Node.java diff -r 34b000f69af3 -r 451468f7340b graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java --- a/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java Sat Aug 23 00:18:14 2014 +0200 +++ b/graal/com.oracle.graal.graph/src/com/oracle/graal/graph/Node.java Sat Aug 23 00:21:50 2014 +0200 @@ -60,14 +60,17 @@ static final int INITIAL_ID = -1; static final int ALIVE_ID_START = 0; + // The use of fully qualified class names here and in the rest + // of this file works around a problem javac has resolving symbols + /** * Denotes a non-optional (non-null) node input. This should be applied to exactly the fields of * a node that are of type {@link Node} or {@link NodeInputList}. Nodes that update fields of * type {@link Node} outside of their constructor should call * {@link Node#updateUsages(Node, Node)} just prior to doing the update of the input. */ - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.FIELD) + @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) + @java.lang.annotation.Target(ElementType.FIELD) public static @interface Input { InputType value() default InputType.Value; } @@ -78,14 +81,14 @@ * {@link Node} outside of their constructor should call {@link Node#updateUsages(Node, Node)} * just prior to doing the update of the input. */ - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.FIELD) + @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) + @java.lang.annotation.Target(ElementType.FIELD) public static @interface OptionalInput { InputType value() default InputType.Value; } - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.FIELD) + @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) + @java.lang.annotation.Target(ElementType.FIELD) public static @interface Successor { } @@ -93,8 +96,8 @@ * Denotes that a parameter of an {@linkplain NodeIntrinsic intrinsic} method must be a compile * time constant at all call sites to the intrinsic method. */ - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.PARAMETER) + @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) + @java.lang.annotation.Target(ElementType.PARAMETER) public static @interface ConstantNodeParameter { } @@ -104,8 +107,8 @@ * an argument for the annotated parameter. Injected parameters must precede all non-injected * parameters in a constructor. */ - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.PARAMETER) + @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) + @java.lang.annotation.Target(ElementType.PARAMETER) public static @interface InjectedNodeParameter { } @@ -116,8 +119,8 @@ * signature (excluding a prefix of {@linkplain InjectedNodeParameter injected} parameters) of a * factory method named {@code "create"} in the node class. */ - @Retention(RetentionPolicy.RUNTIME) - @Target(ElementType.METHOD) + @java.lang.annotation.Retention(RetentionPolicy.RUNTIME) + @java.lang.annotation.Target(ElementType.METHOD) public static @interface NodeIntrinsic { /** @@ -204,7 +207,7 @@ return getNodeClass().getSuccessorIterable(this); } - class NodeUsageIterator implements Iterator { + class NodeUsageIterator implements java.util.Iterator { int index = -1; Node current; @@ -267,7 +270,7 @@ } } - class NodeUsageIterable implements NodeIterable { + class NodeUsageIterable implements com.oracle.graal.graph.iterators.NodeIterable { public NodeUsageIterator iterator() { if (MODIFICATION_COUNTS_ENABLED) {