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 195356 - Error parsing file reported by NetBeans
Summary: Error parsing file reported by NetBeans
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-11 19:54 UTC by hinto
Modified: 2011-08-15 13:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans reports errors that doesn't exist (200.35 KB, image/png)
2011-08-15 13:33 UTC, gilbertoca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hinto 2011-02-11 19:54:32 UTC
Product Version: NetBeans IDE 7.0 Beta (Build 201011152355)
Java: 1.6.0_20; OpenJDK 64-Bit Server VM 19.0-b09
System: Linux version 2.6.35-22-generic running on amd64; UTF-8; en_US (nb)
Userdir: /home/sasbeb/.netbeans/7.0beta

I don't know if this has been reported, but it seems that NB 7.0 beta is parsing java files based on NetBeans runtime jdk (that is, the java version that NetBeans is running in) rather than the jdk library a project is configured to run with.  I have jdk 1.5 Java Code that I am compiling just fine with NetBeans, but the editor shows error badges and when I run/debug, NB tells me that the project has errors (which it doesn't since it just compiled successfully)
Comment 1 Dusan Balek 2011-02-21 12:55:28 UTC
Could you please create a simple test project and attach it to the issue? Thanks.
Comment 2 hinto 2011-02-22 15:04:51 UTC
I don't have a simple case, but I ran from the command line and NB reported a WARNING about the wrong chevron being selected.

I've tried with both COS and clean/build (as well as cleared the cache) and the editor displays an Error while it compiles fine.
Comment 3 Dusan Balek 2011-03-10 15:07:25 UTC
"WARNING about the wrong chevron being selected" ???

Could you please attach at least a screenshot and the exact wording of the displayed error? Thanks.
Comment 4 gilbertoca 2011-08-15 13:33:51 UTC
Created attachment 109980 [details]
Netbeans reports errors that doesn't exist

Netbeans reports errors that doesn't exist
Comment 5 gilbertoca 2011-08-15 13:35:17 UTC
Comment on attachment 109980 [details]
Netbeans reports errors that doesn't exist

I live with this symptom since 6.8 version. 
Every now and them it come back! 
I'm used to enable the Save On Demand option for every project and to get hide of this problem I have to delete the project and check it out of the subversion again.

Regards,

Gilberto