This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Arguments not shown properly in the .jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Arguments not shown properly in the .jar file" Watch "Arguments not shown properly in the .jar file" New topic
Author

Arguments not shown properly in the .jar file

Kapil Singhal
Greenhorn

Joined: Jan 02, 2007
Posts: 2
Hello,

I am creating a .jar file which containing an Interface that is used by the third party integrators.

The problem I am facing is that the parameters of the methods in the interface is not getting passed to the Client-side in the correct format.

E.G.: The method exposed in the interface
public void removeDisplay (SessionId aSessionId, ObjectId aDisplayId);
When accessed from the client side it shows as:
removeDisplay(SessionId arg0, ObjectId arg1);

So the client is not clear as to what ObjectId he has to pass, whether it is "displayId" or some other id.

I have checked the class file in the jar using DJ Decompiler and it shows the method as:
removeDisplay(SessionId sessionId, ObjectId objectId);

So now I am having three different flavours of the same method.

I want to provide the client-side, the correct parameters so that he knows what to pass.

This is happenning with all the parameters, let be string, int, any object.

Kindly tell how to pass the correct arguments which I have provided in the interface.

Thanks,
Kapil
Taariq San
Ranch Hand

Joined: Nov 20, 2007
Posts: 189
Is the source commented and did you generate javadocs for the client?
They should read the API for details.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Arguments not shown properly in the .jar file
 
Similar Threads
New to Spring
Design Questions
After getting WSDL ? SOAP Confusion
My engineer thesis - chapter about RMI-IIOP - need confirmation / help
Java Applet or JavaScript