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 250929 - Refactoring "rename" of a Java class causes incorrect refactoring in a JSF page
Summary: Refactoring "rename" of a Java class causes incorrect refactoring in a JSF page
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-05 15:09 UTC by dalcais10
Modified: 2015-04-27 10:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (652.99 KB, text/plain)
2015-03-05 15:09 UTC, dalcais10
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dalcais10 2015-03-05 15:09:41 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03

1) While refactoring the name of a Java class from MiscView to WmsMiscView

2) a resulting jsf page was refactored incorrectly as shown below.  See from/to examples that show the errors on this jsf page.

From:
<p:poll interval="2" listener="#{miscView.percentChange}" update="txt_count"/>
To:                 
<p:poll interval="2" wmsMiscView="#{miscView.percentChange}" update="txt_count"/>
                      					  
From:
<p:inputTextarea id="rdbmsCsvList" rows="4" cols="50" value="#{miscView.csvList}" maxlength="10000" autoResize="false"/>

To:
<p:inputTextarea id="rdbmsCsvList" rows="4" cwmsMiscView value="#{miscView.csvList}" maxlength="10000" autoResize="false" />

From:
<p:commandButton value="Subset Percent" id="btnSurname" process="@this,percent" update="grid" actionListener="#{miscView.subsetPercentOfRecords}" />

To:
<p:commandButton value="Subset Percent" icon="ui-icon-check" id="btnSurname" process="@this,percent" update="grid" actwmsMiscViewner="#{miscView.subsetPercentOfRecords}" />
Comment 1 dalcais10 2015-03-05 15:09:49 UTC
Created attachment 152411 [details]
IDE log
Comment 2 Petr Hejl 2015-04-27 10:30:07 UTC
I tried to reproduce the case, trying the values you have provided. However I was not able to reproduce the incorrect refactoring. The incorrect behavior may depend on other settings. Can you share the project with us? Or at least some sample project on which you are able to reproduce this?
Comment 3 Petr Hejl 2015-04-27 10:35:18 UTC
Looking to log - perhaps you have changed the files externally at the same time? There is lot not found and excessive scanning messages at the same time.