// Should work fine, One gets SerializablepublicclassOne{publicvoidm(){}publicstaticvoidmain(String[]argv){if(!(newOne()instanceofjava.io.Serializable))System.err.println("declare parents failed");}}aspectX{declareparents:hasmethod(publicvoidm())implementsjava.io.Serializable;}