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.
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.
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 ***