@@ -0,0 +1,1471 @@
+package sfBugs;%0D%0A%0D%0Aimport java.io.IOException;%0D%0Aimport java.io.ObjectInputStream;%0D%0Aimport java.io.ObjectOutputStream;%0D%0Aimport java.io.Serializable;%0D%0Aimport java.lang.reflect.Constructor;%0D%0Aimport java.lang.reflect.Method;%0D%0A%0D%0Apublic class Bug1917352 implements Serializable %7B%0D%0A    private static final long serialVersionUID = 1L;%0D%0A%09private Class javaClass;%0D%0A    private Constructor%5B%5D constructors = new Constructor%5B10%5D;%0D%0A    private Method%5B%5D methods = new Method%5B10%5D;%0D%0A    public static final boolean useContextClassLoader = false;%0D%0A%0D%0A   private void writeObject(ObjectOutputStream out) throws IOException %7B%0D%0A        out.writeUTF(javaClass.getName());%0D%0A    %7D%0D%0A%0D%0A    private void readObject(ObjectInputStream in)%0D%0A        throws IOException, ClassNotFoundException%0D%0A    %7B%0D%0A        javaClass = getClassObject(in.readUTF());%0D%0A        constructors = javaClass.getConstructors();%0D%0A        methods = null;%0D%0A    %7D%0D%0A%0D%0A    private Class getClassObject(String name) throws ClassNotFoundException %7B%0D%0A        if (useContextClassLoader)%0D%0A            return Thread.currentThread().getContextClassLoader()%0D%0A                   .loadClass(name);%0D%0A        else%0D%0A            return Class.forName(name);%0D%0A    %7D%0D%0A%0D%0A    public Constructor getConstructor(int i) %7B return constructors%5Bi%5D; %7D%0D%0A    public Method getMethod(int i) %7B return methods%5Bi%5D; %7D%0D%0A    public void setConstructor(int i, Constructor c) %7B constructors%5Bi%5D = c; %7D%0D%0A    public void setMethod(int i, Method m) %7B methods%5Bi%5D = m; %7D%0D%0A%7D%0D%0A

Test case for [ 1917352 ] H B se:...field in serializable class