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.
Build 200306110100; j2sdk1.4.2-build26 Steps to reproduce: - select some executable java file in the Explorer - start debugger using Step Into (F7) => look at the console: INFORMATIONAL *********** Exception occurred ************ at Wed Jun 11 10:18:37 CEST 2003 [catch]java.lang.Throwable: ExecInfo is deprecated - please use Executor.execute(DataObject) instead at org.openide.execution.ExecInfo.<init>(ExecInfo.java:42) at org.openide.debugger.DebuggerType.startDebugger(DebuggerType.java:64) at org.openide.loaders.ExecSupport.debug(ExecSupport.java:75) at org.netbeans.modules.debugger.support.actions.StepIntoAction.performAction(StepIntoAction.java:100) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:431) at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:97) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:677)
Message from the exception: ExecInfo is deprecated - please use Executor.execute(DataObject) instead: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.5i-sep-II-ExecInfo Using depreacated API for months -> P2.
ExecInfo & DebuggerAPI has been marked as deprecated by core team. But no replacement exists. Its not possible to fix it on our side, as far as I know.
Hanz, it's strange. The upgrade guide (see the URL above) describes how to avoid using ExecInfo. Not true?
We are not "using" ExecInfo. We are extending it and Debugger API too. Both of them has been made deprecated without any replacement. We are not able to fix this state. Can you do something with this?
Trung, we are not able to rewrite all our stuff (Api & impl) to NB3.6. We have to use ExecInfo. So, can you remove deprecated tag from ExecInfo, please? Or at least, can you suppress "ExecInfo deprecated" message? I do not see any other solution how to fix this P2. Thanks, Hanz
No replacement is needed for ExecInfo - look at the class again. You have to solve this in debugger on your own. You can for example deprecate your subclasses of ExecInfo in debugger API and provide new API. Or you can do slightly incompatible change in DebuggerInfo by not extending ExecInfo anymore but providing that two ExecInfo methods. Or something else. It is really up to you. As mentioned in this report the deprecation was done several months ago. In release36 branch the warning can be disabled, but you should not count with that and rather fix it!
OK, I do not want to play this game. I will ask for waiver for nb3.6. And you should suppres the message. I am not able to do it.
The message should not occure now. So, as we use the deprecated ExecInfo from other deprecated api - Debugger API, I think that I can downgrade this bug to P5. We will fix it to the release 3.6+ - new Debugger API.
fixed in main trunk
Verified