Re: [tcljava-dev] Problem in accessing public method of java class using TclBlend
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2008-11-21 00:19:00
|
Namita Jain wrote: > > Hi , > > I am facing problem in accessing the public method (non-static) of a > public java class . The error that I receive is > > *can't find accessible method "createsocket" with 1 argument(s) for > class "javaso* > *cket.EvoTAMClient"* > > *Please find attched the tclblend code and java code which I am using* > > *The interesting point here is that I am able to access the same > method "createsocket" if I remove the parameters and arguments from > method call and declaration.* > > The versions of various products is as follows > -TclBlend Version:1.4.0 > -TCL version:8.4.13.0 > -Jav version: jdk 1.4.2_12 Humm, this is odd. I just tested your code with the Tcl Blend 1.4.1 binary under Windows and it worked for me: % packa require java 1.4.1 % set javasockobj [java::new javasocket.EvoTAMClient] java0x1 % set result [$javasockobj createsocket "good"] inside createsocket 1 Is this a JDK specific issue? There is a somewhat related bug report, but it has to do with public methods on a non-public class: http://sourceforge.net/tracker/index.php?func=detail&aid=1591530&group_id=13005&atid=113005 Mo DeJong |