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 164490

Summary: Static import hint from full classpath
Product: java Reporter: fommil <fommil>
Component: HintsAssignee: Max Sauer <msauer>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 89258    
Bug Blocks:    

Description fommil 2009-05-05 14:08:17 UTC
(copied from gsporar in issue 89258)

If I type this in:

    int val = abs(55);

I get an error and an editor hint that offers to create a method called abs().

I would like to also get an editor hint that offers to do a static import of java.lang.Math.abs (and perhaps another hint for a static import of java.lang.Math.*).
Comment 1 fommil 2009-05-05 14:21:52 UTC
Note that this is related to issue 164487. Instead of scanning the entire classpath, the user provides the list of classes to scan. There could be a lot of noise 
without user preference.
Comment 2 Jan Lahoda 2009-12-04 05:35:10 UTC
The same as issue #71249, IMO.

*** This bug has been marked as a duplicate of bug 71249 ***