[ https://issues.apache.org/jira/browse/NETBEANS-4988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17226245#comment-17226245 ]
Geertjan Wielenga commented on NETBEANS-4988: --------------------------------------------- "a integrated patched JDK9 java compiler" ? > Ant java web application in Netbeans 10 and later won't debug > ------------------------------------------------------------- > > Key: NETBEANS-4988 > URL: https://issues.apache.org/jira/browse/NETBEANS-4988 > Project: NetBeans > Issue Type: Bug > Components: debugger - Ant, serverplugins - Tomcat > Affects Versions: 10.0, 11.3 > Environment: Windows 10 pro, OpenJDK11, Tomcat 9, Netbeans 10, > Netbeans 11.3 > Reporter: Roy Damman > Priority: Major > Labels: ANT, Tomcat, classfile, debugger, java > > I have a Wicket java webapplication Ant project created in Netbeans 7.x. In > the past the project has moved to Netbeans 8.2 and 9.0. I use currently the > OpenJDK11. I can still build, run and debug the project in Netbeans 9. But in > Netbeans 10 and later (11.3), the project won't run in Tomcat 9. I have > searched for the cause and found out that the class files are changed or > deleted on the first attempt to run or debug after a *clean and build*. All > the innerclasses and anonymous classes (*$*.class) files in the projects > *build directory* are deleted. Also the normal other class files were > shrunked in size. After a *clean and build* command there is also a *war* > file created in the *dist* directory. When I restore the class files in the > *war* file to the *build* directory suddenly the project will run. In > Netbeans 9 everything works normally with the same project and Ant file. Also > the Tomcat installation and JDK is the same. Later I found out that the > problem depends on the project settings. When settings > _Project->Build->Compiling->Compile-on-Save_ and > _Project->Run->Deploy-on-Save_ are switched off, you can debug the project > with Tomcat and the problem doesn't occur. But then you don't have that > options. I haven't checked if this a sole Ant problem or that Maven projects > also are affected. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists