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 50802

Summary: Failures in java/j2seproject unit tests
Product: java Reporter: Milan Kubec <mkubec>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: CLOSED WORKSFORME    
Severity: blocker CC: rmatous
Priority: P4 Keywords: TEST
Version: 4.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: exc stack trace

Description Milan Kubec 2004-10-25 13:06:32 UTC
[200410241800]

Failures in tests:
o.n.m.java.j2seproject.BuildImplTest.testRunSingle
o.n.m.java.j2seproject.BuildImplTest.testSubprojects
see attached file for details.
Comment 1 Milan Kubec 2004-10-25 13:07:53 UTC
Created attachment 18484 [details]
exc stack trace
Comment 2 Jesse Glick 2004-10-25 18:54:06 UTC
Cannot reproduce on local machine.

Re. first exception: odd. FileUtil.createData is saying that an
intermediate folder already exists. But in this case it should be
quietly continuing to the next path folder. Also why does it think the
project root is "/"? This is supposed to be taken from the test's work
dir (as for me it is). I will add debugging code to the test which
will report more details next time.

Re. second exception: again odd. FU.cD is now just returning null.
This is illegal. I will add debugging code to ProjectProperties which
will say what the arguments were that it returned null on.

I will also add an assertion to FU.cD to see why it might return null.
Comment 3 Jesse Glick 2004-10-25 21:46:30 UTC
Debugging enhancements:

committed   * Up-To-Date  1.10       
ant/project/src/org/netbeans/spi/project/support/ant/ProjectProperties.java
committed   * Up-To-Date  1.3        
java/j2seproject/test/unit/src/org/netbeans/modules/java/j2seproject/BuildImplTest.java
committed   * Up-To-Date  1.124      
openide/src/org/openide/filesystems/FileUtil.java
Comment 4 Jesse Glick 2004-10-25 22:13:20 UTC
Can't reproduce any failures on test4u's Solaris machines using JDK
1.5.0_01.
Comment 5 Milan Kubec 2005-07-12 11:17:04 UTC
Closing.