diff options
author | aclement <aclement> | 2006-04-19 11:45:46 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-04-19 11:45:46 +0000 |
commit | 980483b367011c75ed7e90b2ddb5a06b34199731 (patch) | |
tree | dd3d293b967c1c71ea61f64d551b5e01f27c61d7 /tests/bugs152 | |
parent | d1a252e911bd19747b0cd6815291f62706f202d6 (diff) | |
download | aspectj-980483b367011c75ed7e90b2ddb5a06b34199731.tar.gz aspectj-980483b367011c75ed7e90b2ddb5a06b34199731.zip |
test for 137479
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/binaryDecp/SubClassLoader.java | 27 | ||||
-rw-r--r-- | tests/bugs152/binaryDecp/SubSubClassLoader.java | 12 | ||||
-rw-r--r-- | tests/bugs152/binaryDecp/X.aj | 4 |
3 files changed, 43 insertions, 0 deletions
diff --git a/tests/bugs152/binaryDecp/SubClassLoader.java b/tests/bugs152/binaryDecp/SubClassLoader.java new file mode 100644 index 000000000..f5ba9a4b3 --- /dev/null +++ b/tests/bugs152/binaryDecp/SubClassLoader.java @@ -0,0 +1,27 @@ +// Bug reported that we incorrectly consider static methods when looking at +// binary weaving decp rules - we shouldn't consider them overriding + +import java.util.*; + +public class SubClassLoader { + private static List l; + + class Inner { + public void foo() { + System.err.println(l.toString()); + } + } + + +/* + // this one would override java.lang.ClassLoader.access$000 on an IBM VM + public static List access$000(ClassLoader cl,String s,byte[] bs,int i,int j,Object o) { + return null; + } + + // this one would override java.lang.ClassLoader.access$000 on an SUN VM:w + public static List access$000() { + return null; + } +*/ +} diff --git a/tests/bugs152/binaryDecp/SubSubClassLoader.java b/tests/bugs152/binaryDecp/SubSubClassLoader.java new file mode 100644 index 000000000..4b6b7f662 --- /dev/null +++ b/tests/bugs152/binaryDecp/SubSubClassLoader.java @@ -0,0 +1,12 @@ +import java.util.*; + +public class SubSubClassLoader { + private static String l; + + class Inner2 { + public void foo() { + System.err.println(l.toString()); + } + } + +} diff --git a/tests/bugs152/binaryDecp/X.aj b/tests/bugs152/binaryDecp/X.aj new file mode 100644 index 000000000..837c825d0 --- /dev/null +++ b/tests/bugs152/binaryDecp/X.aj @@ -0,0 +1,4 @@ +public aspect X { + declare parents: SubSubClassLoader extends SubClassLoader; +// declare parents: SubClassLoader extends ClassLoader; +} |