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 215400 - Introduce local extension double-wraps return values
Summary: Introduce local extension double-wraps return values
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 12:03 UTC by Jaroslav Tulach
Modified: 2015-09-17 11:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2012-07-11 12:03:08 UTC
I tried to refactor a class used in from http://hg.netbeans.org/core-main/file/team_support/c2c.tasks/src/org/netbeans/modules/c2c/tasks/DummyUtils.java
and wrap around the *lien*ata class with local extension.

But it seems like the refactoring double wrapped the usage, so:

X x = DummyUtils.getClientData(); /* let suppose getClientData returns X */

become

X x = new my.pkg.X(DummyUtils.getClientData());

which is wrong as DummyUtil.getClientData() also changed its type to my.pkg.X after the refactoring.
Comment 1 Martin Balin 2015-09-17 11:15:50 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.