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 44328

Summary: Ant stack trace hyperlinking broken for unit tests
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: tzezula
Priority: P3 Keywords: REGRESSION
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Jesse Glick 2004-06-04 03:52:58 UTC
040603. It seems Ant stack trace hyperlinking does
not work anymore, at least in the case of JUnit
assertion failures from NBM project unit tests.

Possibly a consequence of the recent
SourceForBinaryQuery API change? Haven't
investigated yet.
Comment 1 Jesse Glick 2004-06-04 04:48:26 UTC
But it does work in some cases...unclear on what is happening.
Comment 2 Jesse Glick 2004-06-12 02:49:02 UTC
Still seems broken for NBM/junit case, but seems to be working for
running a j2seproject. Need to investigate; can write a unit test for
JavaAntLogger to track it down.
Comment 3 Jesse Glick 2004-06-19 02:02:26 UTC
Sigh... if only I ran my own unit tests and noticed they were
failing.... apisupport/project's SFBQI was not appending slashes to
URLs of nonexistent dirs.
Comment 4 Jesse Glick 2004-06-19 07:03:31 UTC
committed     Up-To-Date  1.8        
apisupport/project/src/org/netbeans/modules/apisupport/project/SourceForBinaryImpl.java
Comment 5 Jesse Glick 2004-06-21 20:41:36 UTC
Nope, still broken in 040619.
Comment 6 Jesse Glick 2004-07-07 23:10:30 UTC
Got it, with unit test now. JavaAntLogger needs to trap <junit>, not
just <java>.
Comment 7 Jesse Glick 2004-07-07 23:11:10 UTC
Actually applies to any <junit> run, even for j2seprojects.
Comment 8 Jesse Glick 2004-07-08 01:12:54 UTC
Fixed, with unit test (not incl. in default commit validation currently):

committed 1.6  java/project/nbproject/project.properties
committed 1.13 java/project/nbproject/project.xml
committed 1.3 
java/project/src/org/netbeans/modules/java/project/JavaAntLogger.java
committed 1.2  java/project/test/cfg-unit.xml
added     1.1  java/project/test/unit/data/simple-app/.cvsignore
added     1.1  java/project/test/unit/data/simple-app/build.xml
added     1.1  java/project/test/unit/data/simple-app/manifest.mf
added     1.1 
java/project/test/unit/data/simple-app/nbproject/build-impl.xml
added     1.1 
java/project/test/unit/data/simple-app/nbproject/project.properties
added     1.1 
java/project/test/unit/data/simple-app/src/simpleapp/Clazz.java
added     1.1 
java/project/test/unit/data/simple-app/src/simpleapp/Main.java
added     1.1 
java/project/test/unit/data/simple-app/test/simpleapp/ClazzTest.java
added     1.1 
java/project/test/unit/src/org/netbeans/modules/java/project/JavaAntLoggerTest.java