/[classpath]/classpath/java/io/ObjectInputStream.java
ViewVC logotype

Diff of /classpath/java/io/ObjectInputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.41 by mkoch, Thu Jun 3 16:11:57 2004 UTC revision 1.42 by jfrijters, Sat Jul 10 07:57:31 2004 UTC
# Line 275  public class ObjectInputStream extends I Line 275  public class ObjectInputStream extends I
275                                
276                if (osc.realClassIsExternalizable)                if (osc.realClassIsExternalizable)
277                  {                  {
278                    Externalizable obj = null;                    Externalizable obj = osc.newInstance();
                     
                   try  
                     {  
                       obj = (Externalizable)clazz.newInstance();  
                     }  
                   catch (InstantiationException e)  
                     {  
                       throw new ClassNotFoundException  
                         ("Instance of " + clazz + " could not be created");  
                     }  
                   catch (IllegalAccessException e)  
                     {  
                       throw new ClassNotFoundException  
                         ("Instance of " + clazz + " could not be created because class or "  
                          + "zero-argument constructor is not accessible");  
                     }  
                   catch (NoSuchMethodError e)  
                     {  
                       throw new ClassNotFoundException  
                         ("Instance of " + clazz  
                          + " could not be created because zero-argument constructor is not defined");  
                     }  
279                                        
280                    int handle = assignNewHandle(obj);                    int handle = assignNewHandle(obj);
281                                        

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26