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 197535 - Build completes even though dependant jar not in Properties
Summary: Build completes even though dependant jar not in Properties
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 12:53 UTC by ddmiller
Modified: 2016-07-07 07:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture showing metbeans completing the build even though errors are showing. (353.23 KB, image/pjpeg)
2011-04-07 12:53 UTC, ddmiller
Details
Picture showing the error with simple recreate steps (358.79 KB, image/pjpeg)
2011-04-07 14:54 UTC, ddmiller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ddmiller 2011-04-07 12:53:34 UTC
Created attachment 107585 [details]
Picture showing metbeans completing the build even though errors are showing.

In my project, I have a dependant JAR added at runtime.  Recently, I added a compile dependency as well, but I did not add the jar to the Compile dependencies in the properties.  When I Clean and Build, the build completes but the tree still shows errors and if I edit the file in question it is still flagging the import for that jar as an error.  This project will not run since it did not really build correctly.

I am attaching a screen shot showing what I am talking about.

Product Version: NetBeans IDE 7.0 RC1 (Build 201103280000)
Java: 1.7.0-ea; Java HotSpot(TM) Client VM 21.0-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\dm185016\.netbeans\7.0rc1
Comment 1 Jesse Glick 2011-04-07 14:06:17 UTC
Cannot evaluate without steps to reproduce from scratch.
Comment 2 ddmiller 2011-04-07 14:54:30 UTC
Created attachment 107586 [details]
Picture showing the error with simple recreate steps
Comment 3 ddmiller 2011-04-07 14:58:34 UTC
I recreated with a simple project.  You need to have the following JAR structure:  A.jar depends on B.jar and C.jar.  B.jar depends on C.jar.  

1.  Create project A.
2.  For project A:  Properties | Libraries | Compile add project B
3.  For project A:  Properties | Libraries | Run add project C
4.  Create project B.
5.  For project B:  Properties | Libraries | Compile add project C
6.  In Main.java of project A add import for some class in B.
7.  In Main.java of project A add import for some class in C.  This gives the squiggly line showing the error in A.
8.  Clean and Build main class.  The build completes but errors still show in A

Note:  In the new picture I just attached:
A=nbbug.jar
B=statem.jar
C=tbcontrols.jar

Ignore utils.jar as B and C both reference it.
Comment 4 Tomas Danek 2012-10-26 14:02:10 UTC
reproduced according to steps.
Comment 5 Martin Balin 2016-07-07 07:19:14 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss