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 7596 - When editor module is disabled, properties fails
Summary: When editor module is disabled, properties fails
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 normal (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-07 17:06 UTC by Mark
Modified: 2003-07-01 14:20 UTC (History)
1 user (show)

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 Mark 2000-09-07 17:06:39 UTC
When editor module is disabled, properties fails.

I get the following error when I disable the editor module from global options
and then attempt to re-start netbeans.

 java.lang.NoClassDefFoundError: org/netbeans/modules/editor/options/AllOptions
         at java.lang.Class.getMethod0(Native Method)
         at java.lang.Class.getMethod(Class.java:888)
         at
org.netbeans.modules.properties.PropertiesModule.installColoring(PropertiesModul
e.java:82)
         at
org.netbeans.modules.properties.PropertiesModule.restored(PropertiesModule.java:
66)
         at org.netbeans.core.ModuleItem.restoreCode(ModuleItem.java:354)
         at
org.netbeans.core.ModuleInstaller.initialize(ModuleInstaller.java:208)
         at org.netbeans.core.Main.main(Main.java:502)
         at org.netbeans.Main.main(Main.java:25)



Suggested fix:
 (1) catch errors, not just exceptions; (2) don't
use "org.netbeans.editor.Settings" as a test for editor module since
that class is in lib/ext/nb-editor.jar even with the module disabled and
is not a reliable test, rather use e.g.
"org.netbeans.modules.editor.EditorModule" from modules/editor.jar.
Comment 1 Peter Zavadsky 2000-09-25 16:12:59 UTC
Fixed in [main-trunk] and [boston] the suggested way.
Comment 2 vnemec 2000-10-18 15:19:59 UTC
verified in [main trunk](nb50) and [boston1025]
Comment 3 Quality Engineering 2003-07-01 14:20:21 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.