Bug 226016 - In static method call editor does not show error badge due to missing import
In static method call editor does not show error badge due to missing import
Status: NEW
Product: groovy
Classification: Unclassified
Component: Editor
7.3
PC Linux
: P3 (vote)
: TBD
Assigned To: Martin Janicek
issues@groovy
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-12 14:00 UTC by Martin Janicek
Modified: 2013-02-18 14:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janicek 2013-02-12 14:00:08 UTC
Steps to reproduce:

1) Create Maven application
2) Create Groovy JUnit test
3) Uncomment test method and put Assert.assertEquals(1, 1) to it

--> Expected: Editor marks newly added line as wrong due to the missing import and show "Add missing import" hint 

--> Current: The line isn't marked with error badge
Comment 1 Martin Janicek 2013-02-18 14:55:52 UTC
Groovy parser doesn't recognize error as it believe that the Assert is just a dynamic variable. Issue 226027 could be an inspiration how to resolve such kind of problems


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