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 10557 - [Exec/Compile] setting compiler target = flaky builds
Summary: [Exec/Compile] setting compiler target = flaky builds
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-21 23:59 UTC by Matt Kangas
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kangas 2001-03-21 23:59:50 UTC
In my project I have two filesystems mounted (both are local directories), one 
with my source tree and another intended for compiler output. When I set 
Project->Settings->Compiler Types->(any compiler)->Target = True
the compiler does correctly stick the .class files in the 2nd filesystem.

HOWEVER, if I now make a change to a non-Main source file, save, then build the 
project (ctrl+shirt+F10)... or even explicitly compile this one file! (F9)...
somehow the changes don't "happen". When I run the project (ctrl+shift+F6) an 
old class is clearly being loaded.

When I check the filesystem I can see that the .class has in fact been 
recompiled (timestamp on touched class is correct). Thus, I suspect that the 
culprit is actually in the "running" machinery.

Note one: I have ensured that an old version of the class I'm changing is not 
present on any mounted filesystem, in case you were wondering.

Note two: This is a Swing application. I am not certain what "execution type" 
is being invoked when I hit ctrl+shift+F6.
Comment 1 Matt Kangas 2001-03-22 00:34:55 UTC
UPDATE - doh!

In spite of my claim to the contrary, there *were* old .class files in my src 
filesystem. The src filesystem was also mounted before the output filesystem... 
presumably the CLASSPATH used by the "running" function lists them in this 
order.


NEW FEATURE REQUEST
===================

When the compiler target directory is set, ensure that said target directory is 
listed in the runtime CLASSPATH *before* any src directories. This would 
greatly reduce the likelihood of being bitten by this "bug" I reported.
Comment 2 Svata Dedic 2001-04-02 07:52:05 UTC
Will ask the user when the output dir follows the source one.
Comment 3 Jan Chalupa 2001-05-05 23:20:49 UTC
Target milestone -> 3.3
Comment 4 Svata Dedic 2001-06-01 13:47:43 UTC
Well, I would like to remove the source entirely from execution classpath if 
the output is directed to another directory; but there may be some additional 
resources (e.g. .gifs) among the sources.
Anyway, I'm bumping priority of the enhancement - the issue can be unnoticed 
by the user for a considerable time causing strange errors. I'm not sure about 
how it will be solved, though.
Comment 5 Jan Chalupa 2001-11-27 12:50:08 UTC
Target milestone -> 3.3.1.
Comment 6 Svata Dedic 2002-05-21 17:48:42 UTC
Cleaning up before 4.0 planning
Comment 7 Marek Grummich 2002-07-19 16:40:09 UTC
Target milestone was changed from not determined to TBD
Comment 8 Jan Becicka 2002-08-06 11:10:36 UTC
New projects infrastructure could solve it, 
isn't?
Comment 9 Martin Matula 2004-11-11 17:23:35 UTC
This is solved by the new build system.