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.
In the attached test project, the two unit tests under "Test Packages" run correctly when individually run. The "TestSuite.java" runs correctly. In the context menu when the mouse is over either "source Packages"/org.metawb.lib or "Test Packages"/org.metawb.lib there is menu item "Test Package". Selecting this produces errors when attempting to compile each of the two unit tests. === output showing typical errors === ... Compiling 2 source files to C:\a\src\bugs\UnitTestCompileBug\build\test\classes C:\a\src\bugs\UnitTestCompileBug\test\org\metawb\lib\DMSTest.java:279: error: cannot find symbol static private void testConstructorCommon(String tag, DMS d, String exp) { symbol: class DMS location: class DMSTest ... C:\a\src\bugs\UnitTestCompileBug\test\org\metawb\lib\UtilTest.java:80: error: cannot find symbol = Util.buildMapFromResource(mapFileName, clazz, dir); symbol: variable Util location: class UtilTest ... 31 errors C:\a\src\bugs\UnitTestCompileBug\nbproject\build-impl.xml:1250: The following error occurred while executing this line: C:\a\src\bugs\UnitTestCompileBug\nbproject\build-impl.xml:263: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 0 seconds) Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07 Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Created attachment 152043 [details] Test project with the issue