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 250273 - Unit tests with dependencies require frequent "Clean and Build"
Summary: Unit tests with dependencies require frequent "Clean and Build"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.2
Hardware: PC All
: P3 normal (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2015-02-06 15:15 UTC by bleun
Modified: 2015-06-03 15:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bleun 2015-02-06 15:15:08 UTC
Given a JavaSE projects with "Compile on Save" setting and some libraries (added as subprojects with option "Build Projects on Classpath"), it is possible to run the project without beeing forced to explicitely build anything. All subprojects are checked and compiled if necessary. Works as expected.

If the very same project has some unit tests, I manually have to perform a "Clean and Build" before I can start the tests. Without explicit "Clean and Build" I get lots of "error: cannot find symbol" messages, obviously the subproject compilation fails is this case, even if the project itself did run immediately before. Is that a bug or expected behavior? A broken project definition?

System Info: 
  Product Version         = NetBeans Platform 8.0.2 (Build 201411181905) (#8230772f5f18)
  Operating System        = Linux version 3.12.36 running on i386
  Java; VM; Vendor        = 1.8.0_31; Java HotSpot(TM) Client VM 25.31-b07; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_31-b13
  Java Home               = /opt/java/jdk1.8.0_31/jre
  System Locale; Encoding = de_DE (nb); UTF-8