]> source.dussan.org Git - aspectj.git/commitdiff
257277: Incorrect generated Source Signature for FieldDeclarations
authoraclement <aclement>
Wed, 4 Feb 2009 20:30:51 +0000 (20:30 +0000)
committeraclement <aclement>
Wed, 4 Feb 2009 20:30:51 +0000 (20:30 +0000)
tests/bugs153/pr148908/BadInterface.java

index ea95de3f33db592eb10e33474d603f15bb85e778..53038be58102341b63ab03bb3d9fbd9902f17bc1 100644 (file)
@@ -1,16 +1,28 @@
+import java.util.ArrayList;
+import java.util.Collections;
 import java.util.Comparator;
 import java.util.LinkedList;
 import java.util.List;
 
 
 public interface BadInterface {
-
     static final Comparator MY_COMPARATOR = new Comparator() {
         public int compare(Object o1, Object o2) {
             return 0;
         }
     };
     
+    static final String aString = "Constant String"; // StringLiteral
+    static final String bString = aString;                     //SingleNameReference
+    static final String cString = aString + bString; // BinaryExpression
+    static final String dString = aString + " and " + bString;//CombinedBinaryExpression
+    static final String eString = "Hello" + " World"; //ExtendedStringLiteral
+    
+    static final int aInteger = 1; //IntLiteral
+    static final int bInteger = aInteger; //SingleNameReference
+    static final int cInteger = aInteger + bInteger; //BinaryExpression
+    static final int dInteger = aInteger + 3 + bInteger; //CombinedBinaryExpression
+    
     public List<String> aList = new LinkedList<String>() {{ add("Busted"); }};
     
     public List<String> bList = new LinkedList<String>() {
@@ -21,4 +33,9 @@ public interface BadInterface {
           return modCount;
        }
     };
+    
+       public List<String> cList = 
+               Collections.unmodifiableList(new ArrayList<String>(){{add("VMID"); }});
+
+    
 }