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.
I was trying this way, but it doesn't work (no exception is thrown, MDR event is fired, but nth changes in the editor): JavaClass serializableInterface = (JavaClass) JavaModel.getDefaultExtent().getType().resolve("java.io.Serializable"); javaClass.getInterfaces().add(serializableInterface); Now I am using the following work-around code instead: MultipartIdClass idProxy = ((JavaModelPackage)javaClass.refImmediatePackage()).getMultipartId(); MultipartId id = idProxy.createMultipartId("java.io.Serializable", null, null); javaClass.getInterfaceNames().add(id); Complete example can be found in the org.netbeans.modules.j2ee.verification.presistence.hints.ImplementSerializableHint class (release55 branch)
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component