Dear Sir,
I found BeanShell is very useful for my current
development in Java. But I got a small problem after
using the command "import *". After that, every
operation related to the "String" object will be
complained with the error:
Ambigous class names:
[com.sun.org.apache.xpath.internal.operations.String,
java.lang.String]
I am using jdk1.5.0_07. Here after is my example:
*************************************************
BeanShell 2.0b4 - by Pat Niemeyer (pat@pat.net)
bsh % s = "hello";
bsh % print(s);
hello
bsh % import *;
Start ClassPath Mapping
Mapping: Archive:
file:/home/hclee/projects/GA/net.asgc.gap.core/lib/ext/bsh-2.0b4.jar
Mapping: Archive:
file:/home/opt/java/jdk1.5.0_07/jre/lib/rt.jar
End ClassPath Mapping
bsh % print(s);
// Error: EvalError: Ambigous class names:
[com.sun.org.apache.xpath.internal.operations.String,
java.lang.String] : at Line: 35 : in file:
/bsh/commands/print.bsh : String .valueOf ( arg )
Called from method: print : at Line: 4 : in file:
<unknown file> : print ( s )
*************************************************
Could you please have a look? Thanks a lot!
Best regards,
Hurng-Chun Lee
Ticket has been migrated to github.
Please follow up on this over here: https://github.com/beanshell/beanshell/issues/401