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

Summary: In static method call editor does not show error badge due to missing import
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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