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.
If you modify servlet and start debugger on it, servlet is not automatically compiled. No class is also compiled when you select Run in Debuger on WEB-INF node.
This happens with plain Java, too. Create Main.java and Test.java classes, put souts into constructor, create Test instance in Main.main, toggle breakpoint, run Main in debugger. Change the sout in Test, and run in debugger again. Test is not compiled, and old text is printed. Same for execution of Main, though. I'm assigning to debugger for evaluation, please reassign where appropriate (java, core) if needed.
And the reassignment 3,2,1...NOW
AbstractCompileAction.compile() seems to do nothing when called from JavaDebugger.compile(). Please evaluate.
Tomas Hurka, can you please evaluate? Thx
What are the classes debugger puts into AbstractCompileAction.compile()?
It puts there the CompilerCookie taken from the ClassElement of the class it is about to launch. Take a look at JavaDebugger.compile (DebuggerInfo)
In that case, it is clear that AbstractCompileAction.compile() does nothing, because Main class is up-to-date.
Hmm, my bug, actually. I was confused by the Java behaviour.
Sorry again.
Fixed in trunk: http://j2eeserver.netbeans.org/source/browse/j2eeserver/manifest.mf.diff?r1=1.28&r2=1.29 http://j2eeserver.netbeans.org/source/browse/j2eeserver/build.xml.diff?r1=1.45&r2=1.46 http://j2eeserver.netbeans.org/source/browse/j2eeserver/src/org/netbeans/modules/j2ee/deployment/execution/ServerDebuggerType.java.diff?r1=1.19&r2=1.20
verified