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 141914 - [65cat] REGRESSION: JUnit test run fails
Summary: [65cat] REGRESSION: JUnit test run fails
Status: RESOLVED DUPLICATE of bug 141639
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 17:06 UTC by ulfzibis
Modified: 2008-07-30 11:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JUnit test fails (11.12 KB, image/jpeg)
2008-07-28 17:08 UTC, ulfzibis
Details
modified nbproject folder (17.82 KB, application/x-compressed)
2008-07-28 17:10 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2008-07-28 17:06:34 UTC
[ BUILD # : 200807251401 ]
[ JDK VERSION : 1.6.0_07 ]

In 6.5 M1 this test processed without problems.

Here you find the source:
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-
charset-enhanced/branches/milestone1/test/SpeedTest.java?rev=&view=mar
kup

You can download the project from here:
- https://java-nio-charset-enhanced.dev.java.net/
-
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-
charset-enhanced/trunk/
current head is here:
-
https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-
charset-enhanced/branches/milestone1/

I have installed 200807251401 and copied the settings from
.netbeans\6.5m1 before 1st start.
Note: there have happend changes in nbproject folder after start of
200807251401, so I attach it too.
Comment 1 ulfzibis 2008-07-28 17:08:21 UTC
Created attachment 65823 [details]
JUnit test fails
Comment 2 ulfzibis 2008-07-28 17:10:04 UTC
Created attachment 65824 [details]
modified nbproject folder
Comment 3 Milos Kleint 2008-07-29 10:38:51 UTC
maybe related to compile on save? can you check the project's properties dialog, panel Build/Compiling?

reassigning for evaluation to jlahoda

jlahoda: please note the project has -Xbootclasspath/p:build/classes added to compiler options.

Comment 4 ulfzibis 2008-07-29 11:12:13 UTC
I have switched off 'compile on save'.
Result: now it works. :-)
Thanks for your hint.

Concerning -Xbootclasspath/p:build/classes :
tzezula advises me to fork VM for javac target by override the -init-macrodef-javac target and add fork="true"
attribute to it.
I didn't have any success with this. See my last comment here:
http://www.netbeans.org/issues/show_bug.cgi?id=130352

Can you give me some additional suggestions for this?
Comment 5 Jan Lahoda 2008-07-30 11:38:07 UTC
The test failures I was able to reproduce were because of incorrect working directory - which has been already fixed as
issue #141639.

Not sure if there are any other problems that can be fixed in the compile-on-save approach - if you need to do something
extraordinary, you may need to disable the CoS and use the traditional build scripts.

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