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 187866 - JUnit classpath contains "."
Summary: JUnit classpath contains "."
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.0
Hardware: Other Linux
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 08:00 UTC by Jaroslav Tulach
Modified: 2010-06-22 16:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (3.00 KB, patch)
2010-06-21 08:13 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2010-06-21 08:00:31 UTC
For a while I am trying to identify reasons for recent failures in the netbinox tests. Looks like the JUnit tests of a module in a suite get empty 

-Xbootclasspath/p:

argument. As far as I can tell this is interpreted as "add current directory on boot classpath", at least on 1.6.0_20 and also on recent OpenJDK. 

I think this is result of 8a4998f46c4c. The previous state probably ignored the non-existing directory, but the current adds current dir. Please modify common.xml to skip any -Xbootclasspath/p: arguments if they are not necessary.
Comment 1 Jaroslav Tulach 2010-06-21 08:13:28 UTC
Created attachment 100261 [details]
Proposed patch
Comment 2 Jesse Glick 2010-06-21 17:45:24 UTC
I actually initially considered doing that, but considered -Xbootclasspath/p: to be harmless, and this approach will break if the JDK path has a space in it. Oh well, Ant is too weak to do better. core-main #bba9f36fe852
Comment 3 Quality Engineering 2010-06-22 03:18:49 UTC
Integrated into 'main-golden', will be available in build *201006220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bba9f36fe852
User: jtulach@netbeans.org
Log: #187866: do not pass "-Xbootclasspath/p:" to tests.
Comment 4 Jaroslav Tulach 2010-06-22 08:54:31 UTC
Re. "space in path" - maybe we could use <jvmargs value="${args}"/> and just find some silly fallback like args="-Dnothing.on.bootclasspath=true"
Comment 5 Jesse Glick 2010-06-22 16:28:53 UTC
Might be an improvement. No strong opinion. Probably Windows users who would be likely to suffer from space-in-path issues.