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.
|Summary:||Errors show up in editor, but the code compiles fine|
|Component:||Project||Assignee:||Tomas Zezula <tzezula>|
|Issue Type:||DEFECT||Exception Reporter:|
Description dcomsa 2008-04-21 12:24:19 UTC
This has to do with Java Persistence API from Java SE 6. Although the code compiles fine, the editor shows errors in some classes, right at the beginning of the file. When hovering the mouse cursor over the error, the tool tip shows "in class file null: unknown enum constant javax.persistence.GenerationType.AUTO" It has no effect on the developing part (not a show stopper), but it's very annoying.
Comment 2 Jiri Prox 2008-04-21 12:52:56 UTC
Please, provide more info: Which build do you use? What type of project do you use? Which libraries do you use in you project and what's their configuration? Thanks
Comment 3 dcomsa 2008-04-21 13:07:00 UTC
After reading your post, and trying to gather info to reply, I have managed to find the issue. Here's what happen. I have two projects. One of them managing persistent (using JPA API) operations, and the other one using it. The one with JPA had "TopLink Essentials" library added, while the main one didn't. The main project was using entity classes, and I think this is where the IDE got confused. After adding "TopLink Essentials" library to the second project, the errors disappeared. Anyway, here's the info you requested: Product Version: NetBeans IDE 6.1 RC1 (Build 200804100130) Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22 System: Linux version 2.6.24-16-generic running on i386; UTF-8; en_US (nb) Project type: Java Application
Comment 4 Tomas Zezula 2008-04-21 16:10:43 UTC
Unfortunately NetBeans doesn't automatically add transitive libraries from libraries projects to the main project. There is a request for it #47507. Marking as a duplicate. *** This issue has been marked as a duplicate of 47507 ***