Bug 221722 - Refactoring groovy class marks other file with error badge until next Save
Refactoring groovy class marks other file with error badge until next Save
Status: NEW
Product: groovy
Classification: Unclassified
Component: Refactoring
7.2
PC Linux
: P3 (vote)
: 7.3
Assigned To: Martin Janicek
issues@groovy
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo