Sfoglia il codice sorgente

286375: test and fix: recursive decl npe

tags/V1_6_6
aclement 14 anni fa
parent
commit
f1b0ee3c34

+ 5
- 0
tests/bugs166/pr286375/DatabaseOperationMonitor.java Vedi File

@@ -0,0 +1,5 @@
privileged public abstract aspect DatabaseOperationMonitor<T extends AggregatedDatabaseStats<T>> extends BaseOperationMonitor<T> {}
class BaseOperationMonitor<P> {}
class AggregatedDatabaseStats<Q> {}
class Wibble extends AggregatedDatabaseStats<Wibble> {}
aspect Foo extends DatabaseOperationMonitor<Wibble> {}

+ 8
- 3
tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java Vedi File

@@ -18,13 +18,18 @@ import org.aspectj.testing.XMLBasedAjcTestCase;

public class Ajc166Tests extends org.aspectj.testing.XMLBasedAjcTestCase {

// public void testITDannos_288049() {
// runTest("itd decanno");
// }

public void testMungerCCE_288635() {
runTest("munger cce");
}

// public void testNPEonBadAspectDecl_286375() {
// runTest("npe on bad aspect decl");
// }
public void testNPEonBadAspectDecl_286375() {
runTest("npe on bad aspect decl");
}

//
// public void testAnnoModifierOrdering_287597_1() {
// runTest("anno modifier ordering - 1");

+ 4
- 1
tests/src/org/aspectj/systemtest/ajc166/ajc166.xml Vedi File

@@ -2,11 +2,14 @@

<suite>

<ajc-test dir="bugs166/pr288049" title="itd decanno">
<compile files="org/tests/AClass.java org/tests/ASubClass.java org/tests/DeclareAnns.aj" options="-1.5"/>
</ajc-test>
<ajc-test dir="bugs166/pr288635" title="munger cce">
<compile files="org/tests/atann/AddAnnotations.aj org/tests/atann/AddITDDoMethod.aj org/tests/atann/InterceptTraceds.aj org/tests/atann/TestClass.java org/tests/atann/Traced.java" options="-1.5"/>
<run class="org.tests.atann.TestClass"/>
</ajc-test>
<ajc-test dir="bugs166/pr286375" title="npe on bad aspect decl">
<compile files="DatabaseOperationMonitor.java" options="-1.5" outjar="wibble.jar"/>

Loading…
Annulla
Salva