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 221722 - Refactoring groovy class marks other file with error badge until next Save
Summary: Refactoring groovy class marks other file with error badge until next Save
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-08 12:54 UTC by Vladimir Riha
Modified: 2012-11-23 08:37 UTC (History)
1 user (show)

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 Vladimir Riha 2012-11-08 12:54:23 UTC
To reproduce, have to groovy files:

fileA.groovy:
class Foo {
  void bar() {
     println "foobar"
  }
}

fileB.groovy
cs = new Foo() 
cs.bar();


Both files are saved and opened, now:
- in fileA, Rename|Refactor class Foo to e.g FooBar
- confirm refactoring
=> fileB has error badge, it disappears after next time I save file. The badge is only in Projects window and header of the file's tab in IDE. Inside the file as such there is no error.



Product Version: NetBeans IDE Dev (Build 201211080001)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Linux version 3.2.0-32-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Janicek 2012-11-08 16:02:29 UTC
Valid issue, thanks vlado. Doesn't look pretty, will fix this for 7.3
Comment 2 Vladimir Riha 2012-11-23 08:37:43 UTC
Another steps to reproduce:
- in JavaSE project, create Groovy JUnit test (e.g. JUnit 4.X)
- go to Project Properties and remove JUnit library
=> groovy unit test file does not have error badge in Projects window although there are errors in the file (imported classes not found). Re-saving again helps


Product Version: NetBeans IDE Dev (Build 201211230002)
Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16
System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)