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.

Bug 73692 - Problems adding a new item to to the list of implemented interfaces
Summary: Problems adding a new item to to the list of implemented interfaces
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-17 09:18 UTC by Tomasz Slota
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2006-03-17 09:18:51 UTC
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)
Comment 1 Jan Becicka 2006-10-26 16:28:15 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 2 Quality Engineering 2007-09-20 09:57:23 UTC
Reorganization of java component