Re: Accessing java methods in Scheme via SISC

"Kathi Fisler" <[email protected]>
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
I don't see typos or a protection problem.  I've attached a short file
summarizing the problem, showing the Java signatures, my Scheme code, and
three test cases (one of which yields the error).

Thanks,
Kathi


On 8/11/06, Scott G. Miller <[email protected]> wrote:
>
> On Fri, Aug 11, 2006 at 11:10:25AM -0400, Kathi Fisler wrote:
> > I am trying to use SISC (for the first time) to build a Scheme-based
> repl
> > for a Java application.  I'm using java 1.5 and SISC 1.15.2 (downloaded
> this
> > morning).   I'm having an odd problem using generic-java-method to lift
> java
> > methods into Scheme: for the same class, I can access some methods fine,
> but
> > others yield "no applicable method" errors.  All of the methods are
> public.
> > I don't see any other distinguishing feature of the ones that aren't
> lifting
> > (they return void in their native state, but copies with a fake non-void
> > return value yield the same problem).
>
> Usually it is a result of protection, but if the methods are public as
> you say, it could be that the name of the method differs from what you
> are passing to generic-java-method.  Can you post some snippets of your
> Scheme code and the method signatures in Java?
>
> Check for case sensitivity possibilities as well.  For example:
>
> ; Won't work, since the symbol is lower cased
> (generic-java-method 'toString)
>
> ; instead...
> (generic-java-method '|toString|)
>
>
>         Scott
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Sisc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisc-users
repl.ss (application/octet-stream, 674 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.