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 116070 - fix usages of deprecated APIs in cnd
Summary: fix usages of deprecated APIs in cnd
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on: 104959
Blocks: 77030
  Show dependency tree
 
Reported: 2007-09-19 21:49 UTC by Thomas Preisler
Modified: 2009-02-19 20:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The list of cnd related warnings (2.38 KB, text/plain)
2008-09-22 11:04 UTC, Vitezslav Stejskal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Preisler 2007-09-19 21:49:11 UTC
core still uses deprecated APIs many places:

org/netbeans/modules/cnd/CndModule.java:43: warning: [deprecation] org.openide.options.SystemOption in org.openide.options has been deprecated
import org.openide.options.SystemOption;
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/settings/CppSettings.java:30: warning: [deprecation] 
org.openide.options.SystemOption in org.openide.options has been deprecated
import org.openide.options.SystemOption;
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/settings/CppSettings.java:43: warning: [deprecation] 
org.openide.options.SystemOption in org.openide.options has been deprecated
public class CppSettings extends SystemOption {
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/settings/MakeSettings.java:30: warning: [deprecation] 
org.openide.options.SystemOption in org.openide.options has been deprecated
import org.openide.options.SystemOption;
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/settings/MakeSettings.java:41: warning: [deprecation] 
org.openide.options.SystemOption in org.openide.options has been deprecated
public class MakeSettings extends SystemOption {
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/settings/ShellSettings.java:23: warning: [deprecation] 
org.openide.options.SystemOption in org.openide.options has been deprecated
import org.openide.options.SystemOption;
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/settings/ShellSettings.java:33: warning: [deprecation] 
org.openide.options.SystemOption in org.openide.options has been deprecated
public class ShellSettings extends SystemOption {
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:57: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.removeOption((SystemOption)SystemOption.findObject(FPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:57: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.removeOption((SystemOption)SystemOption.findObject(FPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:58: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
       	ps.removeOption((SystemOption)SystemOption.findObject(CCPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:58: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
       	ps.removeOption((SystemOption)SystemOption.findObject(CCPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:59: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.removeOption((SystemOption)SystemOption.findObject(MakefilePrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:59: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.removeOption((SystemOption)SystemOption.findObject(MakefilePrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:60: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.removeOption((SystemOption)SystemOption.findObject(ShellPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:60: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.removeOption((SystemOption)SystemOption.findObject(ShellPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:74: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(FPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:74: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(FPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:75: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(CCPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:75: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(CCPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:76: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(MakefilePrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:76: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(MakefilePrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:77: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(ShellPrintOptions.class, true));
/Users/thp/netbeans-6.0-dev/cnd/core/src/org/netbeans/modules/cnd/CndModule.java:77: warning: [deprecation] org.openide.options.SystemOption in 
org.openide.options has been deprecated
        ps.addOption ((SystemOption) SystemOption.findObject(ShellPrintOptions.class, true));
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Comment 1 Thomas Preisler 2007-10-09 01:00:19 UTC
PrintSettings can be removed(?). They are not working and NB6.0 doesn't support these kind of customization (?).
MakeSettings and ShellSettings have already been removed from UI. Should be rewritten to not use SystemOptions
CppSettings should be rewritten to use SharedClassObject instead of SystemOptions
Comment 2 Thomas Preisler 2007-10-10 18:38:01 UTC
FIxed all compilation warnings due to deprecated APIs

The core module still depends on Settings Options API module though. This is because the language options (CCOptions, COptions, FOptions, ...) directly or 
indirectly extends BaseOption which extends deprecated SystemOptions. There is no good replacement in 6.0 so this cannot be fixed. It should be notes that 
many other modules (Java, Ruby, ...) in NB6.0 also  depends on BaseOption for the same reason.
Comment 3 Thomas Preisler 2007-10-10 19:12:38 UTC
Here is the current list of modules using org.openide.options:
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.db uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.editor uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.options.editor uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.xml.text uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.languages uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.editor.codetemplates uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.gsf uses org.netbeans.modules.editor.highlights which is deprecated: Use 
org.netbeans.spi.highlighting (Editor Library 2) instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.gsf uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.ruby uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.html.editor uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.ruby.rhtml uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.java.editor uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.web.core.syntax uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.javadoc uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.cnd uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.spi.debugger.ui uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.web.jsf.navigation uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.debugger.jpda.ant uses org.netbeans.modules.editor.highlights which is 
deprecated: Use org.netbeans.spi.highlighting (Editor Library 2) instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.java.navigation uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.visualweb.dataconnectivity uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.visualweb.designer.jsf uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.debugger.jpda.projects uses org.netbeans.modules.editor.highlights which is 
deprecated: Use org.netbeans.spi.highlighting (Editor Library 2) instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.db.sql.editor uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.uihandler uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.properties.syntax uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.css.visual uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.editor.plain uses org.openide.options which is deprecated: Use 
org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.editor.kit uses org.netbeans.modules.editor.highlights which is deprecated: Use 
org.netbeans.spi.highlighting (Edito
Comment 4 Jesse Grodnik 2007-10-11 22:16:03 UTC
Unfortunately we cannot easily eliminate the usages of deprecated APIs noted above because the C/C++ core module still
depends on the Settings Options API. The native  language options (CCOptions, COptions, FOptions, ...) directly or
indirectly extend BaseOption which extends the deprecated SystemOptions. There is no good replacement in NetBeans 6.0
for the deprecated API so this cannot be easily fixed. It should be noted that many other modules (Java, Ruby, ...) in
NB6.0 also depends on BaseOption for the same reason.

This defect will be fixed in NetBeans 6.x. A waiver has been requested.
Comment 5 Thomas Preisler 2008-02-04 21:01:54 UTC
Still no good replacement API in 6.1 Changing this to a Task. It is not rally a bug in CND.
Comment 6 Thomas Preisler 2008-09-11 02:55:41 UTC
Won't fix remaining ones for 6.0 or 6.1. Please file a new IZ for 6.5....
Comment 7 Vitezslav Stejskal 2008-09-22 11:02:56 UTC
This task is still valid and I don't understand why you need another one filed in order to fix the warnings. In 6.5 you
should be able to get rid of all the warnings. I checked the dev build and various cnd modules still depend on all
three: openide.options, editor.deprecated.pre61settings, editor.deprecated.pre61completion. I'm going to attach the list
here. Please read through http://wiki.netbeans.org/EditorSettingsUpgrade that describes what needs to be done in order
to migrate editor settings. The migration of SystemOption to NbPreferences is described in
http://www.netbeans.org/download/dev/javadoc/org-openide-util/org/openide/util/doc-files/preferences.html as stated in
issue #77030.
Comment 8 Vitezslav Stejskal 2008-09-22 11:04:22 UTC
Created attachment 70196 [details]
The list of cnd related warnings
Comment 9 Alexander Simon 2008-09-22 13:04:23 UTC
remove unused deprecated dependences:
http://hg.netbeans.org/main/rev/88a6e23cc723
So rest depricated is:
org.netbeans.modules.cnd uses org.openide.options which is deprecated: Use org.openide.util.NbPreferences instead.
org.netbeans.modules.cnd uses org.netbeans.modules.editor.deprecated.pre61settings which is deprecated.
org.netbeans.modules.cnd.editor uses org.openide.options which is deprecated: Use org.openide.util.NbPreferences instead.
org.netbeans.modules.cnd.editor uses org.netbeans.modules.editor.deprecated.pre61settings which is deprecated.
org.netbeans.modules.cnd.completion uses org.netbeans.modules.editor.deprecated.pre61completion which is deprecated.
org.netbeans.modules.asm uses org.netbeans.modules.editor.deprecated.pre61settings which is deprecated.

Comment 10 Alexander Simon 2008-09-22 18:29:28 UTC
fixing:
-remove depricated in org.netbeans.modules.cnd.editor module
Change set:
http://hg.netbeans.org/main/rev/76b3484a3f62
Comment 11 Quality Engineering 2008-09-23 18:16:54 UTC
Integrated into 'main-golden', will be available in build *200809231435* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/88a6e23cc723
User: alexvsimon@netbeans.org
Log: fixing IZ#116070:fix usages of deprecated APIs in cnd/core
- remove unused deprecated dependences
Comment 12 Thomas Preisler 2008-09-26 06:26:19 UTC
left are:

WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.cnd uses org.openide.options which is deprecated: Use org.openide.util.NbPreferences instead.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.cnd uses org.netbeans.modules.editor.deprecated.pre61settings which is deprecated.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.cnd.completion uses org.netbeans.modules.editor.deprecated.pre61completion which is deprecated.
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.asm uses org.netbeans.modules.editor.deprecated.pre61settings which is deprecated.

From cnd:

/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/actions/MakeBaseAction.java:111: warning: [deprecation] execute() in org.netbeans.modules.cnd.api.execution.NativeExecutor has been deprecated
            new NativeExecutor(
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/actions/ShellRunAction.java:183: warning: [deprecation] execute() in org.netbeans.modules.cnd.api.execution.NativeExecutor has been deprecated
                executorTask = nativeExecutor.execute();
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:281: warning: [deprecation] SHOW_GOTO in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_GOTO);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:281: warning: [deprecation] show(int) in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_GOTO);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:283: warning: [deprecation] SHOW_GOTO in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_GOTO, col1);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:283: warning: [deprecation] show(int,int) in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_GOTO, col1);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:323: warning: [deprecation] SHOW_TRY_SHOW in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_TRY_SHOW);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:323: warning: [deprecation] show(int) in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_TRY_SHOW);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:325: warning: [deprecation] SHOW_TRY_SHOW in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_TRY_SHOW, col1);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/builds/OutputWindowOutputStream.java:325: warning: [deprecation] show(int,int) in org.openide.text.Line has been deprecated
                                l.show(Line.SHOW_TRY_SHOW, col1);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/CppCodeFoldingSideBar.java:63: warning: [deprecation] CodeFoldingSideBar() in org.netbeans.editor.CodeFoldingSideBar has been deprecated
    public CppCodeFoldingSideBar(){
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/FIndentEngine.java:74: warning: [deprecation] getFormatter(java.lang.Class) in org.netbeans.editor.Formatter has been deprecated
        return (FFormatter)Formatter.getFormatter(FKit.class);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/FKit.java:92: warning: [deprecation] createSyntax(javax.swing.text.Document) in org.netbeans.editor.BaseKit has been deprecated
    public Syntax createSyntax(Document doc) {
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/FKit.java:98: warning: [deprecation] createFormatter() in org.netbeans.editor.BaseKit has been deprecated
    public Formatter createFormatter() {
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/FKit.java:191: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
                            Formatter formatter = doc.getFormatter();
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/options/FmtOptions.java:266: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
        	bd.getFormatter().reformatLock();
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/options/FmtOptions.java:267: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
                bd.getFormatter().reformat(bd, 0, bd.getLength());
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/fortran/options/FmtOptions.java:271: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
        	bd.getFormatter().reformatUnlock();
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/makefile/MakefileKit.java:73: warning: [deprecation] createSyntax(javax.swing.text.Document) in org.netbeans.editor.BaseKit has been 
deprecated
    public Syntax createSyntax(Document doc) {
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/parser/ViewNode.java:156: warning: [deprecation] SHOW_GOTO in org.openide.text.Line has been deprecated
        getLine().show(Line.SHOW_GOTO);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/parser/ViewNode.java:156: warning: [deprecation] show(int) in org.openide.text.Line has been deprecated
        getLine().show(Line.SHOW_GOTO);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/shell/ShellKit.java:70: warning: [deprecation] createSyntax(javax.swing.text.Document) in org.netbeans.editor.BaseKit has been deprecated
    public Syntax createSyntax(Document doc) {
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/shell/ShellSettingsInitializer.java:86: warning: [deprecation] CARET_SIMPLE_MATCH_BRACE in org.netbeans.editor.ext.ExtSettingsNames has 
been deprecated
      settingsMap.put(ExtSettingsNames.CARET_SIMPLE_MATCH_BRACE,
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/editor/shell/ShellSettingsInitializer.java:89: warning: [deprecation] HIGHLIGHT_MATCH_BRACE in org.netbeans.editor.ext.ExtSettingsNames has been 
deprecated
      settingsMap.put(ExtSettingsNames.HIGHLIGHT_MATCH_BRACE,
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/loaders/CndAbstractDataLoaderExt.java:141: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
                            bd.getFormatter().reformatLock();
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/loaders/CndAbstractDataLoaderExt.java:143: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
                                bd.getFormatter().reformat(bd, 0, offset);
/Users/thp/netbeans-dev/main/cnd/src/org/netbeans/modules/cnd/loaders/CndAbstractDataLoaderExt.java:145: warning: [deprecation] getFormatter() in org.netbeans.editor.BaseDocument has been deprecated
                                bd.getFormatter().reformatUnlock();
Comment 13 Egor Ushakov 2008-10-01 16:23:03 UTC
MakeBaseAction.java and ShellRunAction.java fixed in 65freeze
Comment 14 Egor Ushakov 2008-10-01 18:11:25 UTC
WARNING [org.netbeans.core.modules]: the module org.netbeans.modules.asm uses
org.netbeans.modules.editor.deprecated.pre61settings which is deprecated is fixed with:
http://hg.netbeans.org/main/rev/1720ab541c54

OutputWindowOutputStream.java is not used anywhere and may be deleted
Comment 15 Alexey Vladykin 2008-10-03 09:37:21 UTC
Remaining usages of pre61settings are removed with the following changeset integrated into release65_cnd_freeze:
changeset:   104612:ab93af52b1a2
user:        Alexey Vladykin <alexey_vladykin@netbeans.org>
date:        Fri Oct 03 12:10:24 2008 +0400
summary:     Getting rid of pre61settings

CND is still using org.openide.options and org.netbeans.modules.editor.deprecated.pre61completion. Removing those usages
is not trivial and risky at the moment.
Comment 16 Alexey Vladykin 2008-10-03 11:09:38 UTC
Review comments from alexvsimon integrated into release65_cnd_freeze:
changeset:   104619:e308688551c0
tag:         tip
user:        Alexey Vladykin <alexey_vladykin@netbeans.org>
date:        Fri Oct 03 13:28:14 2008 +0400
summary:     Getting rid of pre61settings: review comments
Comment 17 Alexey Vladykin 2008-10-17 09:23:27 UTC
Changesets transplanted from release65_cnd_freeze to main:
http://hg.netbeans.org/main/rev/0721bf88123e
http://hg.netbeans.org/main/rev/a33760d3f31d
http://hg.netbeans.org/main/rev/e0772c257fd5

Only pre61completion is still used.
Comment 18 Leonid Lenyashin 2008-10-20 17:29:03 UTC
I assume now is a good time to fix the rest of this stuff - code completion. So reassigning to VV.
Comment 19 Vladimir Voskresensky 2008-10-21 15:20:24 UTC
fixed usage of deprected.pre61completion
http://hg.netbeans.org/main?cmd=changeset;node=3fe5da77ca2d

no more warnings on startup from CND components
Comment 20 Quality Engineering 2008-10-22 05:06:12 UTC
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3fe5da77ca2d
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing IZ#116070: fix usages of deprecated APIs in cnd. Fixed usage of deprecated.pre61completion
Comment 21 Jiri Skrivanek 2008-10-22 11:24:07 UTC
Please, remove also registrations from the layer (cnd\src\org\netbeans\modules\cnd\resources\mf-layer.xml) and possibly
unused *BeanInfo.java:

http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/util/doc-files/preferences.html
Comment 22 Antonin Nebuzelsky 2008-10-22 14:07:22 UTC
One of the last two issues blocking issue 77030.

-> P2 defect for 7.0
Comment 23 Vladimir Voskresensky 2008-10-22 14:41:29 UTC
Could you explain, please, how can I check myself that issue is fixed/not fixed?
Comment 24 Vladimir Voskresensky 2008-10-22 15:55:11 UTC
fixed:
http://hg.netbeans.org/main?cmd=changeset;node=0819975eebf5

to test I just physically removed org-openide-options.jar file and haven't found any problems in C++ area after sanity
checks 
Comment 25 Quality Engineering 2008-10-23 04:52:10 UTC
Integrated into 'main-golden', will be available in build *200810230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0819975eebf5
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#116070: fix usages of deprecated APIs in cnd. Removed not needed *.settings files and *BeanInfo files
Comment 26 Jiri Skrivanek 2008-10-23 10:04:17 UTC
Thanks.