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 59981 - Warning: the module org.netbeans.modules.properties uses org.openide.compat which is deprecated: The classes in this API are all deprecated and can be replaced by more modern APIs.
Summary: Warning: the module org.netbeans.modules.properties uses org.openide.compat w...
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on: 49919
Blocks: 59488
  Show dependency tree
 
Reported: 2005-06-15 08:23 UTC by Marian Mirilovic
Modified: 2005-09-08 11:56 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 Marian Mirilovic 2005-06-15 08:23:20 UTC
NB.dev(200506142000)

Warning in the console just after start:

[org.netbeans.core.modules #2] Warning: the module
org.netbeans.modules.properties uses org.openide.compat which is deprecated: The
classes in this API are all deprecated and can be replaced by more modern APIs.
Comment 1 Marian Petras 2005-07-18 14:34:12 UTC
Confirmed. The module uses several deprecated class WeakListener (reported as
issue #49919) - this is the source of the warning.

The module also uses several deprecated methods:

    RequestProcessor.postRequest(Runnable)
    FileObject.isReadOnly()
    TopComponent.requestFocusInWindow()
    AbstractNode.getDefaultAction()
    AbstractNode.setDefaultAction(SystemAction)
    AbstractNode.setIconBase(String)

But using these methods do not require using the 'compat' module.
Comment 2 Tomas Stupka 2005-08-29 10:19:21 UTC
Fixed in trunk.

Removed files:
 /properties/src/org/netbeans/modules/properties/WeakListenerPropertyBundle.java

Added files:
 /properties/src/org/netbeans/modules/properties/PropertiesRequestProcessor.java

Modified files:
 /ide/golden/deps.txt
 /properties/src/org/netbeans/modules/properties/KeyNode.java,
 /properties/src/org/netbeans/modules/properties/PropertiesDataNode.java
 /properties/src/org/netbeans/modules/properties/PropertiesFileEntry.java
 /properties/src/org/netbeans/modules/properties/PropertiesLocaleNode.java
/properties/src/org/netbeans/modules/properties/PropertiesTableModel.java
/properties/src/org/netbeans/modules/properties/BundleEditPanel.java
/properties/src/org/netbeans/modules/properties/FindPerformer.java        
/properties/src/org/netbeans/modules/properties/LocaleNodeCustomizer.java 
/properties/src/org/netbeans/modules/properties/PropertiesEditorSupport.java
/properties/src/org/netbeans/modules/properties/PropertiesOpen.java
/properties/src/org/netbeans/modules/properties/StructHandler.java
Comment 3 Marian Mirilovic 2005-09-08 11:56:48 UTC
verified in NB5.0(200509072000)