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 242707 - Refactoring error
Summary: Refactoring error
Status: RESOLVED DUPLICATE of bug 243751
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 08:43 UTC by hallyhaa
Modified: 2014-09-04 12:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (51.47 KB, text/plain)
2014-03-09 08:43 UTC, hallyhaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hallyhaa 2014-03-09 08:43:13 UTC
Experimenting with OpenNLP, I renamed a class full of static methods (SentenceDetectorTest --> SentenceDetectorHandler). This is a resulting line in another class:
    String toUse = shortTest ? SentenceDetectorHandler.fewSentencesSentenceDetectorHandlerest.article;

Before the refactoring, the line looked like this:
    String toUse = shortTest ? SentenceDetectorTest.fewSentences : SentenceDetectorTest.article;

... Seems like a regexp mistake?

Product Version = NetBeans IDE 8.0 Beta (Build 201401141042)
Operating System = Linux version 3.11.0-15-generic running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Comment 1 hallyhaa 2014-03-09 08:43:17 UTC
Created attachment 145877 [details]
IDE log
Comment 2 Teccc 2014-04-11 07:51:41 UTC
I have a similar problem in Netbeans 8:

I renamed a class, and in several other classes with static method-calls to the renamed class, the name is suddenly a mix of the old name and the new name.
Comment 3 Ralph Ruijs 2014-09-04 12:11:12 UTC

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