Browse Source

APT and missing declaring type in BTB hierarchy

tags/V1_8_6
Andy Clement 9 years ago
parent
commit
3ad0706d16

BIN
org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip View File


BIN
org.eclipse.jdt.core/jdtcore-for-aspectj.jar View File


+ 3
- 0
tests/bugs186/romain/Code.java View File

@@ -0,0 +1,3 @@
public class Code {
public void foo() { System.out.println("foo");}
}

+ 5
- 0
tests/bugs186/romain/Runner1.java View File

@@ -0,0 +1,5 @@
public class Runner1 {
public static void main(String[]argv) {
new SubCode().foo();
}
}

+ 5
- 0
tests/bugs186/romain/Runner2.java View File

@@ -0,0 +1,5 @@
public class Runner1 {
public static void main(String[]argv) {
new SubCode().foo();
}
}

+ 2
- 0
tests/bugs186/romain/SubCode.java View File

@@ -0,0 +1,2 @@
public class SubCode<T> {
}

+ 3
- 0
tests/bugs186/romain/X.java View File

@@ -0,0 +1,3 @@
public aspect X {
declare parents: SubCode extends Code;
}

BIN
tests/bugs186/romain/code1.jar View File


BIN
tests/bugs186/romain/code2.jar View File


+ 4
- 0
tests/src/org/aspectj/systemtest/ajc186/Ajc186Tests.java View File

@@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase;
*/
public class Ajc186Tests extends org.aspectj.testing.XMLBasedAjcTestCase {

public void testMissingExtends() throws Exception {
runTest("missing extends on generic target");
}
public void testMissingMethod_462821() throws Exception {
runTest("missing method");
}

+ 10
- 0
tests/src/org/aspectj/systemtest/ajc186/ajc186.xml View File

@@ -7,4 +7,14 @@
</compile>
</ajc-test>

<ajc-test dir="bugs186/romain" title="missing extends on generic target">
<compile files="Code.java SubCode.java" options="-1.5" outjar="code.jar"/>
<compile files="X.java Runner1.java" options="-1.5" inpath="code.jar"/>
<run class="Runner1">
<stdout>
<line text="foo"/>
</stdout>
</run>
</ajc-test>

</suite>

Loading…
Cancel
Save