From: Timothy J. H. <tim...@ma...> - 2004-05-15 18:51:51
|
On Apr 26, 2004, at 1:47 PM, Ken Anderson wrote: > This looks like quasi quote is ultimately invoking (.append > stringBuffer ...) > and we try to invoke a method on java.lang.AbstractStringBuffer . > > Can you do a simple test, like: > > (define x 4) > {x + 3 = [(x + 3)]} > > This should cause the problem. This might be a method lookup problem. I just downloaded java 1.5 and I also found the problem is in .append: > (define z (java.lang.StringBuffer.)) > (.append z "abc") .... this gives a "Bad method application from a private class" error You can get arround this temporarily using the "hack" (set! .append .append#) But we may need to do some deeper work to incorporate the new "generic" type system with the Jscheme javadot notation. Make this leap will probably solve these invocation errors but will require an extension of javadot to generic types.... ---Tim--- > > There is another problem with the class Object[] too... > > k > At 02:08 PM 4/20/2004 -0400, Timothy John Hickey wrote: >> Hi David, >> >> Does this only happen when you load in the elf/classpath.scm >> or does it happen more generally (e.g. for any javadot call, >> for any private javadot call, etc....) I haven't downloaded the >> preview version of Java on any of my machines yet, but I'll try >> to download a version over the weekend and look into the problem.... >> >> Thanks for the bug report, >> Sorry I have to wait a few days before tackling it..... >> >> ----Tim--- >> On Apr 19, 2004, at 1:01 PM, david wrote: >> >>> >>> I am getting errors modifying the classpath >>> in the new java from sun. This works fin with >>> the 1.4 jvm >>> --------------------------------------------------------------------- >>> - >>> newport:~$ >>> newport:~$ java -jar /usr/share/davud/jscheme.jar >>> >>> JScheme 6.3 4/5/04 http://jscheme.sourceforge.net >>> >>>> (load "elf/classpath.scm") >>> (map (lambda (u) (addClasspathUrl u)) >>> '("/opt/postgresql-7.4/share/java/postgresql.jar" >>> "/mnt/hda3/download/napkinlaf.jar" >>> "/mnt/hda3/download/CLooks_120.jar")) >>> >>> >>> #t >>>> (#null #null #null) >>> >>> >>> ---------------------------------------------------------- >>> >>>> newport:~$ /mnt/hda1/j2sdk1.5.0/bin/java -jar >>>> /usr/share/davud/jscheme.jar >>> >>> JScheme 6.3 4/5/04 http://jscheme.sourceforge.net >>> >>>> (load "elf/classpath.scm") >>> (map (lambda (u) (addClasspathUrl u)) >>> '("/opt/postgresql-7.4/share/java/postgresql.jar" >>> "/mnt/hda3/download/napkinlaf.jar" >>> "/mnt/hda3/download/CLooks_120.jar")) >>> ** WARNING: Error during load (lineno 10): jsint.BacktraceException[ >>> >>> (.append sb (U.stringify (car args )#f )) >>> args = ("\nThe class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and (Import.setCl... >>> sb = >>> loop = (lambda !{}~1 (args sb)...) >>> args= = ("\nThe class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and (Import.setCl... >>> sb= = >>> args = ("\nThe class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and (Import.setCl... >>> >>> ==================================== >>> SchemeException: Bad method application from a private class: , >>> "(java.lang.IllegalAccessException: Class jsint.Invoke can not >>> access a member of class java.lang.AbstractStringBuilder with >>> modifiers \"public\" public java.lang.AbstractStringBuilder >>> java.lang.AbstractStringBuilder.append(java.lang.String) #(\nThe >>> class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and >>> (Import.setClassLoader).\n\n(replaceClassLoaders) creates a new >>> class loader and resets Jscheme's\nint... >>> >>> (.append sb (U.stringify (car args )#f )) >>> args = ("\nThe class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and (Import.setCl... >>> sb = >>> loop = (lambda !{}~1 (args sb)...) >>> args= = ("\nThe class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and (Import.setCl... >>> sb= = >>> args = ("\nThe class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and (Import.setCl... >>> >>> ==================================== >>> SchemeException: Bad method application from a private class: , >>> "(java.lang.IllegalAccessException: Class jsint.Invoke can not >>> access a member of class java.lang.AbstractStringBuilder with >>> modifiers \"public\" public java.lang.AbstractStringBuilder >>> java.lang.AbstractStringBuilder.append(java.lang.String) #(\nThe >>> class loader used by Jscheme can be accessed >>> with\n(Import.getClassLoader) and >>> (Import.setClassLoader).\n\n(replaceClassLoaders) creates a new >>> class loader and resets Jscheme's\ninternal caches, so that classes >>> can be recompiled and tested easily.\n))" >>> ** WARNING: Can't define-method (iterate (items Object[]) action) >>> classes (Object[]) do not exist. >>> #t >>>> (#null #null #null) >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: IBM Linux Tutorials >>> Free Linux tutorial presented by Daniel Robbins, President and CEO of >>> GenToo technologies. Learn everything from fundamentals to system >>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>> _______________________________________________ >>> Jscheme-user mailing list >>> Jsc...@li... >>> https://lists.sourceforge.net/lists/listinfo/jscheme-user >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >> _______________________________________________ >> Jscheme-user mailing list >> Jsc...@li... >> https://lists.sourceforge.net/lists/listinfo/jscheme-user > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek > For a limited time only, get FREE Ground shipping on all orders of $35 > or more. Hurry up and shop folks, this offer expires April 30th! > http://www.thinkgeek.com/freeshipping/?cpg=12297 > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user > |