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.
Summary: | Fix import does not provided for static method | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Prox
2015-06-12 11:38:16 UTC
JDK9 specific, works OK (CC offers many valueOfs for case (2)) in trunk. My bad, I've made a typo when testing, so I wasn't testing `valueOf' variable. Sorry. The code contained check for same-named elements in the current scope; however, for a method call, it also considered same-named field as a conflict - but fields, methods and classes have different namespaces. I relaxed the check a little. Fixed in jet-main#b4b1cc6ba717 Integrated into 'main-silver', will be available in build *201509300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b4b1cc6ba717 User: Svata Dedic <sdedic@netbeans.org> Log: #252953: allowed to import methods if field of same name is in scope. Fixed defect when using FQN for a method (whole signature was inserted, not just FQN) |