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

Key: IDEADEV-24546
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Nikolay Chashnikov
Reporter: Davide Baroncelli
Votes: 1
Watchers: 1
Operations

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

GWT: inspection for values casted in the onSuccess method of AsyncCallback

Created: 03 Sep 07 18:08   Updated: 05 Feb 08 15:27
Component/s: GWT Support
Fix Version/s: Diana Final

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

Build: 7,241


 Description  « Hide
Suppose I have a remote GWT service method like this:

A getA();

and a corresponding async interface method:

void getA(AsyncCallback);

I will probably call this like this:

service.getA( new AsyncCallback() {
public void onSuccess( Object result ) { A a = ( A )result; .... }

...
} );

suppose I'm now refactoring the base method:

ADifferentA getA();

the cast in the onSuccess is now wrong, but nothing in IDEA tells me that. I believe an inspection should warn about wrong casts in cases like this one.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.