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 161171 - "Run File" is one compilation behind...
Summary: "Run File" is one compilation behind...
Status: RESOLVED DUPLICATE of bug 158218
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-25 17:08 UTC by efhilton
Modified: 2009-03-25 17:30 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 efhilton 2009-03-25 17:08:31 UTC
I have a Java class file that I'm modifying inside a large project.

Inside that Java class, I have a main() function, which I use to test some functionality of the class's methods.

I modify contents of this file, and then I hit "Shift + F6" to run the file.

The file executes, however, I've noticed that somehow it's one compilation behind.  

More precisely, what I mean by this is that let's say that I have the line:

  System.err.println("Hello world 1");

in my class file.

I clean the project and rebuild and run: I get "Hello World 1".

Now, I'm going to change the line to :

  System.err.println("Hello World 2");

I don't clean nor rebuild the project.  Instead, I hit "Shift + F6".  The file executes, but I get: "Hello World 1".

I now change the line to:

  System.err.println("Hello World 3");

I don't clean nor rebuild.  Instead, I hit "Shift + F6".  The file executes, but I get: "Hello World 2".


NOTES:

In the properties section, I have "Compile on Save" enabled.

I don't believe that I've seen this when I hit "F6" to run the entire project, but I've definitely seen it on "Shift +
F6" on occasion.
Comment 1 Jiri Prox 2009-03-25 17:30:42 UTC
This should be already fixed, see issue 158218.
Thanks for your report anyway

*** This issue has been marked as a duplicate of 158218 ***