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 212160 - Refactor is not applying for a string of class or package name
Summary: Refactor is not applying for a string of class or package name
Status: RESOLVED DUPLICATE of bug 79257
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 09:21 UTC by vidhyadharantechdays
Modified: 2012-05-09 09:22 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vidhyadharantechdays 2012-05-07 09:21:26 UTC
Refactor is not applying for a string. 

For example suppose i am declaring a sting like this

package com.netcat.test.*;

class AllTest{
.
.
.
.
.
String className = "com.netcat.test.JustForTest";
.
.
.
..
}
if i rename the package to "com.netcat.api.test", the refactor should rename the string as well.
Comment 1 crazyjavahacking 2012-05-08 14:55:15 UTC
I don't see the point there. String could have practically any possible value and it seems like crazy to try to scan through all of string values (from the performance side).

The only case which makes sense is the case when Class.forName() with string literal will be used.
Comment 2 vidhyadharantechdays 2012-05-08 14:58:49 UTC
No it will make sense. I saw an IDE which has this feature.
Comment 3 Ralph Ruijs 2012-05-09 09:22:59 UTC

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