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 246914 - Compile on save doesn't 'compile on save'
Summary: Compile on save doesn't 'compile on save'
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 04:41 UTC by iluvtr
Modified: 2016-07-07 07:19 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 iluvtr 2014-09-08 04:41:10 UTC
In the Java Web Project the Compile on Save option works well, you can see this in action seeing the modified date of the .class files every time you modify classes, add new classes, etc.

The problem is that in a Java SE Project Compile on Save simply doesn't work, you modify classes, add new methods, modify existing, and the modification date of the .class files doesn't change

If you use tools like JRebel you can really feel this problem, I see that JRebel is guided by the modification date of .class files (produced by the compilation) in order to trigger reload of classes. NB doesn't compile classes, JRebel doesn't make its work, and users get really angry.

I send you an example:
Create an Ant Java Web project and a dependent Java SE Project. 
Both projects have the Compile on save option enabled.
In the Web project you have a Servlet called HelloServlet that invokes a class called HelloService located in the Java SE Project. Now do some changes to the servlet: Compile on Save works!, do some changes to the HelloService class, no Compile on save for you!
Comment 1 iluvtr 2014-11-04 02:36:23 UTC
The last bugs I reported were left without any answer from you. I think this not very polite and I wish at least something like 'We have no time right now, wait a little'
Comment 2 Martin Balin 2016-07-07 07:19:04 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss