@@ -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())); | |||
} | |||
} |
@@ -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 | |||
} |
@@ -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"); | |||
} |
@@ -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"/> |