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 59652 - Compile nor Run don't take in account the change of the Source Level until some change in source code
Summary: Compile nor Run don't take in account the change of the Source Level until s...
Status: VERIFIED DUPLICATE of bug 46776
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-06 10:42 UTC by Marian Mirilovic
Modified: 2005-09-05 10:01 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 Marian Mirilovic 2005-06-06 10:42:51 UTC
This issue has been found by Tim Bray and reported on nbdev mailing list
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=54161

NB4.2(200506031800), JDK1.5.0_03

Steps to reproduce:
- run IDE on JDK1.5
- create new project (default JDK1.5)
- create Main class with the line :
ProcessBuilder pb = new java.lang.ProcessBuilder("cmd", "arg1"); 
- change the source level to 1.4 (by properties of your project)
- invoke compile / run (by shortcuts)
-> everything finished successfully, but it shouldn't
- it "works this way" until you change your source code
-> compilation as weel as run fail
Comment 1 Jesse Glick 2005-06-06 19:39:04 UTC
Of course - you need to use Clean & Build after making significant config
changes like this. See issue #46776 for other examples.

*** This issue has been marked as a duplicate of 46776 ***
Comment 2 Marian Mirilovic 2005-06-07 07:12:12 UTC
verified dupl.