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.
I have a project that utilizes jar files from other parts (components) of the project. Best I can tell, netbeans is caching those jar files! If I recompile and add new methods, etc, netbeans doesn't see it. This is reproduceable. If I recompile (I use indirect ant) and re-jar, then recompile the main application (in netbeans, again using indirect ant), the compile doesn't see the changes. If I go to a shell prompt and run the same ant target, it works as expected. I was able to confirm this is happening by mounting the jar file using the explorer and the methods I just added were gone! But if I copied the jar to a new filename, then mounted the same jar with a new filename, the methods showed up. Hence, I conclude that netbeans is improperly caching jar files. The only fix right now (using beta3) is to exit netbeans and restart!
Glenn: OS version? IDE version? JDK version? What do you mean by 'indirect ant'? Although I put this bug into 'filesystems' category, I am not sure if it's true. <speculation> Inside the IDE there is a background thread which periodically checks the timestamps of mounted JARs and remount them if the timestamps have changed. But I suspect that this is not the case because you're using ant which doesn't look for classfiles via IDE's filesystems. If ant is run in the same JVM as the IDE then I suspect that the caching happens at the JVM level. ant/jvm forgets to clear the old file descriptors which point to the old JARs </speculation> Any reliable testcases would be very helpful.
This bug relates to #14130. That`s reason why priority of #14130 will be increased. And this bug will be marked as duplicate. *** This issue has been marked as a duplicate of 14130 ***
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.