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 |
|
|