History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-24538
Type: Cosmetics Cosmetics
Status: Open Open
Priority: Normal Normal
Assignee: Nikolay Chashnikov
Reporter: Vaclav Pech
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Inconvenient service rename

Created: 27 Dec 07 18:55   Updated: 05 Feb 08 15:01
Component/s: GWT Support
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,590


 Description  « Hide
I renamed a service called Calculator to CalculatorService. As a result the CalculatorImpl class was renamed to CalculatorImplService, which I think should be CalculatorServiceImpl instead.

 All   Comments   Work Log   Change History      Sort Order:
chad pratt - 04 Jan 08 22:46
We may have the same issue. I commented on this in the Community forum:

I have found an error in the behavior of the rename-refactoring in the context of a GWT application. I will submit a JIRA. It may be causing you anguish, so I describe it here.

I take a shared point of reference the the sample application provided under new->Google Web Toolkit->GWT sample application. Start a new project and load that. Call it MySampleApplication.

The short version is that if you refactor-rename the .java class named MySampleApplication which is created, you'll break the application. This is because the refactoring renames (without giving you an option not to) a certain line in interface:

public interface MySampleApplicationService extends RemoteService

more exactly, this line:
((ServiceDefTarget) app).setServiceEntryPoint(GWT.getModuleBaseURL() +
"mySampleApplication.MySampleApplication/MySampleApplicationService");

and even more exactly second occurrence of MySampleApplication in the line:

"mySampleApplication.MySampleApplication/MySampleApplicationService")

my rename looks like this:
"mySampleApplication.BigMistake/MySampleApplicationService");

So that's the bad behavior in a nutshell.