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 164987 - static imports not refreshed
Summary: static imports not refreshed
Status: RESOLVED DUPLICATE of bug 158218
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 17:25 UTC by mjr_1974
Modified: 2009-06-08 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mjr_1974 2009-05-12 17:25:11 UTC
I don't know if this issue belongs to the editor or the JUnit module.


I use a static format string in my regular class, something like this:

static final String FORMAT_STRING = "%1$s is a String";

In my test class I access it through an static import:

import static abc.MyTestedClass.FORMAT_STRING

if I modify the value of FORMAT_STRING in MyTestedClass like this:

static final String FORMAT_STRING = "%1$s is a Weird String";

The test class does not know about that modification. Even deleting the {buid} dir will not solve the problem. The only
way I found to make this work is by deleting the static import in my test class, compiling (making it fail), adding
again the static import and compiling again.
Comment 1 Jiri Prox 2009-06-08 10:45:52 UTC
This is already reported, see issue 158218. This specific usecase should be fixed in 6.7

*** This issue has been marked as a duplicate of 158218 ***