java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: at.xupt.liu.method1
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at at.xupt.liu.Test22.method2(TestObjectInOutputStream.java:84)
at at.xupt.liu.TestObjectInOutputStream.main(TestObjectInOutputStream.java:18)
Caused by: java.io.NotSerializableException: at.xupt.liu.method1
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at at.xupt.liu.Test11.testObjectOutputStream(TestObjectInOutputStream.java:39)
at at.xupt.liu.TestObjectInOutputStream.main(TestObjectInOutputStream.java:17)
为什么错误信息中第二段说愿意是疑问没有序列化 我不是已经将method1 序列化了么