Issue Details (XML | Word | Printable)

Key: GDSFLEX-31
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: William Draï
Reporter: John Fletcher
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
GraniteDS Grails Plugin

Gas3 should not generate proxies for private methods in service proxy objects

Created: 03/Oct/11 09:46 AM   Updated: 27/Oct/11 12:19 PM   Resolved: 27/Oct/11 12:19 PM
Component/s: Gas3 integration
Affects Version/s: 0.8.5
Fix Version/s: 0.9.0


 Description  « Hide
If I put the following method in my Java service class:

private String fruitName() {
 return 'banana'
}

I get the following in my AS3 service proxy object:

public function this$2$fruitName(resultHandler:Object = null, faultHandler:Function = null):void {
    if (faultHandler != null)
        callProperty("this$2$fruitName", resultHandler, faultHandler);
    else if (resultHandler is Function || resultHandler is ITideResponder)
        callProperty("this$2$fruitName", resultHandler);
    else if (resultHandler == null)
        callProperty("this$2$fruitName");
    else
        throw new Error("Illegal argument to remote call (last argument should be Function or ITideResponder): " + resultHandler);
}

It's fine to just ignore this when your method only returns a String, but if you're returning an object that doesn't exist on the AS side then this creates a compilation error.

Please ignore private methods when generating service proxies.

There are no subversion log entries for this issue yet.