• Post Reply Bookmark Topic Watch Topic
  • New Topic

Arguments not shown properly in the .jar file  RSS feed

 
Kapil Singhal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the source commented and did you generate javadocs for the client?
They should read the API for details.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!