Browse Source

333469

tags/V1_6_11RC1
aclement 13 years ago
parent
commit
d15ad6f11f

+ 10
- 0
tests/bugs1611/pr333469/MyList.java View File

@@ -0,0 +1,10 @@
import java.lang.reflect.Field;
import java.util.ArrayList;

public class MyList extends ArrayList<Integer> {
public static void main(String []argv) throws Exception {
Field f = MyList.class.getDeclaredField("serialVersionUID");
f.setAccessible(true);
System.out.println("ser="+f.getLong(new MyList()));
}
}

+ 7
- 0
tests/bugs1611/pr333469/MyList_Serializable.java View File

@@ -0,0 +1,7 @@
import java.io.Serializable;

aspect MyList_Serializable {
declare parents : MyList implements Serializable;

private static final long MyList.serialVersionUID = 1L; // causes compiler failure
}

+ 4
- 0
tests/src/org/aspectj/systemtest/ajc1611/Ajc1611Tests.java View File

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

public void testGenericsAndItds_333469() {
runTest("pr333469");
}

public void testMissingType_332388() {
runTest("pr332388");
}

+ 7
- 0
tests/src/org/aspectj/systemtest/ajc1611/ajc1611.xml View File

@@ -22,6 +22,13 @@
</compile>
</ajc-test>
<ajc-test dir="bugs1611/pr333469" title="pr333469">
<compile files="MyList.java MyList_Serializable.java" options="-1.5"/>
<run class="MyList">
<stdout><line text="ser=1"/></stdout>
</run>
</ajc-test>
<ajc-test dir="bugs1611/pr332388_2" title="pr332388 - 2">
<compile files="M.java" outjar="M.jar" options="-1.5"/>
<compile files="A.java" classpath="M.jar" outjar="A.jar" options="-1.5"/>

Loading…
Cancel
Save