diff options
Diffstat (limited to 'tests/bugs161/pr237447')
-rw-r--r-- | tests/bugs161/pr237447/GenericClass.java | 3 | ||||
-rw-r--r-- | tests/bugs161/pr237447/GenericGenericMemberClass.java | 16 | ||||
-rw-r--r-- | tests/bugs161/pr237447/SomeClass.java | 9 | ||||
-rw-r--r-- | tests/bugs161/pr237447/UnrelatedAspect.java | 7 |
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs161/pr237447/GenericClass.java b/tests/bugs161/pr237447/GenericClass.java new file mode 100644 index 000000000..a6318e353 --- /dev/null +++ b/tests/bugs161/pr237447/GenericClass.java @@ -0,0 +1,3 @@ +public class GenericClass<Type extends Object> { +} + diff --git a/tests/bugs161/pr237447/GenericGenericMemberClass.java b/tests/bugs161/pr237447/GenericGenericMemberClass.java new file mode 100644 index 000000000..65f864d45 --- /dev/null +++ b/tests/bugs161/pr237447/GenericGenericMemberClass.java @@ -0,0 +1,16 @@ +public class GenericGenericMemberClass { + + // this line never causes a problem + GenericClass<Double> [] genericMemberArray; + + // this line causes compilation errors to be introduced + GenericClass< GenericClass<Double> >[] genericGenericMemberArray; + + // uncommenting the following lines removes the compilation errors (very unexpectedly, for me at least) +// @SuppressWarnings("unused") +// private static final GenericClass< GenericClass<Double> > genericGenericMember = null; + + public void test() { + } +} + diff --git a/tests/bugs161/pr237447/SomeClass.java b/tests/bugs161/pr237447/SomeClass.java new file mode 100644 index 000000000..6837aa840 --- /dev/null +++ b/tests/bugs161/pr237447/SomeClass.java @@ -0,0 +1,9 @@ +public class SomeClass { + GenericGenericMemberClass member; + + public void someMethod() { + // commenting the following line will remove compilation errors (and mask the problem) + member.test(); + } +} + diff --git a/tests/bugs161/pr237447/UnrelatedAspect.java b/tests/bugs161/pr237447/UnrelatedAspect.java new file mode 100644 index 000000000..c378480b4 --- /dev/null +++ b/tests/bugs161/pr237447/UnrelatedAspect.java @@ -0,0 +1,7 @@ +import org.aspectj.lang.annotation.*; + +@SuppressAjWarnings +public aspect UnrelatedAspect { + before(): call(void UnrelatedClas*.unrelatedMethod()) { + } +}
\ No newline at end of file |