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 253179 - Refactor of overloaded static import doesn't work as expected, causes compiler errors
Summary: Refactor of overloaded static import doesn't work as expected, causes compile...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-25 10:31 UTC by Leperous
Modified: 2015-06-30 01:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example (542 bytes, application/octet-stream)
2015-06-25 10:31 UTC, Leperous
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leperous 2015-06-25 10:31:18 UTC
Created attachment 154389 [details]
Example

If I have several overloaded static methods, that are imported statically, and one or more are refactored to change their name, then Netbeans does not add static imports for the newly named methods.

Take the attached example. If you select one of the "of" methods, and rename-refactor the method name (e.g. CTRL+R) to e.g. "length", then "length" should be but is not added as a static import.

(Note that the example also applies if the "Length" class is elsewhere.)
Comment 1 Jiri Prox 2015-06-25 10:34:06 UTC
reproducible
Comment 2 Ralph Ruijs 2015-06-29 08:12:49 UTC
changeset:   c5660afbe62e
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Mon Jun 29 10:12:05 2015 +0200
summary:     #253179 - Refactor of overloaded static import doesn't work as expected, causes compiler errors
Comment 3 Quality Engineering 2015-06-30 01:20:59 UTC
Integrated into 'main-silver', will be available in build *201506300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c5660afbe62e
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #253179 - Refactor of overloaded static import doesn't work as expected, causes compiler errors