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 226016 - In static method call editor does not show error badge due to missing import
Summary: In static method call editor does not show error badge due to missing import
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
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
Exception Reporter:


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