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 270778

Summary: Extremely limited symbol resolution and auto import for Netbeans Groovy editor
Product: groovy Reporter: aplatypus <aplatypus>
Component: RefactoringAssignee: bruno.flavio
Status: NEW ---    
Severity: normal Keywords: USABILITY
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description aplatypus 2017-06-01 02:26:51 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_131
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.131-b11

Reproducibility: Happens every time

STEPS:
  * I have a Groovy class
  *  I have written a line of code in the Groovy file to throw an existing java exception
  * throw new InvalidConstructorUseException("Parameters not supported by this object");
  *  When I run the groovy class from a test script I get a compile error (shown below)

ACTUAL:
  * nothing happens

 *  Then there is a compile error at build time
     Compile errors such as:
       ConcreteTestClass.groovy: 62: unable to resolve class InvalidConstructorUseException 

EXPECTED:
 Something similar to the java editor to at least warn me there is a compile error

  *  Show the unresolved symbol with a red-underline (default hilighting)
  * Implement the Alt/Enter function to offer suggestions
  * Provide the option to add the import command for the resolved symbol
  * Provide the same other options as would happen in a java file.