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 130309 - Lines with correct code are marked as incorrect
Summary: Lines with correct code are marked as incorrect
Status: VERIFIED DUPLICATE of bug 131403
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 17:04 UTC by Petr Dvorak
Modified: 2008-04-14 13:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot after a "clean and bulid" action (sorry for the repeated messages, I pressed F5 as the browser seemed to freeze) (236.25 KB, image/png)
2008-03-19 10:27 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-03-17 17:04:37 UTC
Product Version: NetBeans IDE Dev (Build 200803170003)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

(This issue is probably a duplicate)

Create a new java desktop application, open the source code of the "...view.java" file and rename/refactor the package
that contains this file. You will get an error warnings and some code will be underline in spite of being correct. If
you just rewrite the same code manually, the warnings disappears.

Read whole discussion here: http://www.netbeans.org/issues/show_bug.cgi?id=124137

You will find some irrelevant information and the screenshot of what I mean by the problem (underlined code in the
screenshot are actually correct).
Comment 1 Jiri Prox 2008-03-18 09:45:16 UTC
Yes, it duplicate of issue 129907. 

*** This issue has been marked as a duplicate of 129907 ***
Comment 2 Petr Dvorak 2008-03-18 10:11:19 UTC
This issue is not a duplicate of 129907, as it is not about badges in Project window, but about underlined source code.
Still reproducible in:

Product Version: NetBeans IDE Dev (Build 200803171203)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

In the following screenshot, you can see that there are no badges in the Project view. But there are some underlined
lines of code in spite of the fact the code is correct.

http://www.netbeans.org/nonav/issues/showattachment.cgi/58493/screenshot.png

To reproduce:

1. create a java desktop application called "DesktopApplication"
2. open source (!! not visual designer but source code) of DesktopApplicationView.java
3. rename/refactor source package "desktopapplication" to "desktopapplicationnew"
Comment 3 Petr Dvorak 2008-03-18 10:11:25 UTC
This issue is not a duplicate of 129907, as it is not about badges in Project window, but about underlined source code.
Still reproducible in:

Product Version: NetBeans IDE Dev (Build 200803171203)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

In the following screenshot, you can see that there are no badges in the Project view. But there are some underlined
lines of code in spite of the fact the code is correct.

http://www.netbeans.org/nonav/issues/showattachment.cgi/58493/screenshot.png

To reproduce:

1. create a java desktop application called "DesktopApplication"
2. open source (!! not visual designer but source code) of DesktopApplicationView.java
3. rename/refactor source package "desktopapplication" to "desktopapplicationnew"
Comment 4 Vitezslav Stejskal 2008-03-18 11:29:15 UTC
I don't seem to be able to reproduce this in a dev build.
Comment 5 Petr Dvorak 2008-03-18 13:22:53 UTC
Reproducible in:

Product Version: NetBeans IDE Dev (Build 200803171203)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

Every time I try.

I just executed the scenario again:

1. create a java desktop application called "DesktopApplication"

2. open source (!! not visual designer but source code) of DesktopView.java

3. rename/refactor (Ctrl+R) source package "desktopapplication" to "desktopapplicationnew"

And the problem was the same. (I live in 2122.)
Comment 6 Max Sauer 2008-03-18 15:26:27 UTC
Joshis, could you please verify in a new (todays) build? Thanks.
Comment 7 Petr Dvorak 2008-03-19 10:24:10 UTC
msauer, I tried build:

Product Version: NetBeans IDE Dev (Build 200803190008)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

The issue is still reproducible. Today, I was testing JDK1.5/JDK1.6 compliance. I changed JDK1.5 to JDK1.6 and back
several times, so that errors with swing were appearing. Once I "fixed" the code (set "Layout Generation Style" to
"Standard Java 6"), I cleaned and built the project. However, some lines remained underlined and marked as incorrect.
Comment 8 Petr Dvorak 2008-03-19 10:24:33 UTC
msauer, I tried build:

Product Version: NetBeans IDE Dev (Build 200803190008)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

The issue is still reproducible. Today, I was testing JDK1.5/JDK1.6 compliance. I changed JDK1.5 to JDK1.6 and back
several times, so that errors with swing were appearing. Once I "fixed" the code (set "Layout Generation Style" to
"Standard Java 6"), I cleaned and built the project. However, some lines remained underlined and marked as incorrect.
Comment 9 Petr Dvorak 2008-03-19 10:27:23 UTC
Created attachment 58637 [details]
Screenshot after a "clean and bulid" action (sorry for the repeated messages, I pressed F5 as the browser seemed to freeze)
Comment 10 Jiri Prox 2008-03-28 14:19:58 UTC
Marking this as duplicate of higher priority bug. 

*** This issue has been marked as a duplicate of 131403 ***
Comment 11 Petr Dvorak 2008-04-14 13:27:36 UTC
Verified: 20080411