diff options
author | aclement <aclement> | 2009-02-04 20:30:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-02-04 20:30:51 +0000 |
commit | 22506adf79a66b5caa323d50e103a5f47d125c2e (patch) | |
tree | 11ab35c84fc1b47cd40323a2614e39a49c64290e /tests/bugs153/pr148908 | |
parent | d8a9b17f4540c876d68b1bd5cf28a43054a9379d (diff) | |
download | aspectj-22506adf79a66b5caa323d50e103a5f47d125c2e.tar.gz aspectj-22506adf79a66b5caa323d50e103a5f47d125c2e.zip |
257277: Incorrect generated Source Signature for FieldDeclarations
Diffstat (limited to 'tests/bugs153/pr148908')
-rw-r--r-- | tests/bugs153/pr148908/BadInterface.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/bugs153/pr148908/BadInterface.java b/tests/bugs153/pr148908/BadInterface.java index ea95de3f3..53038be58 100644 --- a/tests/bugs153/pr148908/BadInterface.java +++ b/tests/bugs153/pr148908/BadInterface.java @@ -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"); }}); + + } |