This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
return c != null ? c : ClassLoader.getSystemClassLoader ();
}
/** Overriden to enhance func to pass also other specified serialVersionUID's
* which are compatible with current class version. */
protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException {
ObjectStreamClass ose = super.readClassDescriptor();
// XXX #19432: The TXTEditorSupport$Environment with the specified serialVersionUID is also
// compatible with current one in NB3.3.1., this is short time solution.
// Later there will be created some file mappings of classes with older serialVersionUID's
// compatible with current class. Something simialar what is done with packages
// in Utilities.translate.
if(ose.getSerialVersionUID() == -1490768532464888185L
&& "org.netbeans.modules.text.TXTEditorSupport$Environment".equals(ose.getName())) {
ClassLoader cl = getNBClassLoader();
Class clazz = Class.forName(Utilities.translate(ose.getName()), false, cl);
ObjectStreamClass o = ObjectStreamClass.lookup(clazz);
return o;
} else {
return ose;
/** Reads an object from the given object input.
* The object had to be saved by the {@link NbObjectOutputStream#writeSafely} method.
*