Forum OpenACS Q&A: Response to nsjava with acs 3.4.10

Collapse
Posted by Dan Wickstrom on
Thanks for the bug report. I'll take a look at it. I tried the following:

Welcome to testfts2 running at /home/nsadmin/bin/nsd (pid 916)
AOLserver/3.2+ad12 (aolserver3_2_ad12) for linux built on Jan 30 2001 at 20:36:35
CVS Tag: $Name: aolserver3_2 $
testfts2:nscp 1> package require nsjava
0.1
testfts2:nscp 2> set s [nsjava::new {String String} {hello world}]
nsjava0x76
testfts2:nscp 3> $s toString
hello world
testfts2:nscp 4> nsjava::import java.util.Hashtable
can not import class "java.util.Hashtable", it does not exist
testfts2:nscp 5> nsjava::import
java.util.Hashtable
testfts2:nscp 6> set h [nsjava::new Hashtable]
nsjava0x77
testfts2:nscp 7> $h {put Object Object} save $s
testfts2:nscp 8> [$h {get Object} save] toString
hello world
testfts2:nscp 9>

So it appears that even though an error message is received, the import is still working correctly. I'll go ahead and fix that.