bsh 2.0b2 bug?

Anthony Sciola <[email protected]> Fri, 20 Aug 2004 18:14:32 -0400
Newsgroups gmane.comp.java.beanshell.devel
Organization Newbury Networks
Message-ID <1093040072.2887.97.camel@acs>
I compiled the 2.0b2 provided and tried to switch jboss 3.2.3 to use it.
Unfortunately, I'm getting an error on startup now:

java.lang.NoSuchMethodError:
bsh.classpath.ClassManagerImpl.loadSourceClass(Ljava/lang/String;)Ljava/lang/Class;
        at bsh.classpath.ClassManagerImpl.classForName(Unknown Source)

I searched and grepped and found:

1. classForName is not defined in ClassManagerImpl.

2. It *is* defined in BshClassManager with an interesting comment of
"// Move me to classpath/ClassManagerImpl???" preceding it.

I added it naively to ClassManagerImpl where it now gives 2 errors, one
pretty easy to fix, the other not:

    [javac]bsh/classpath/ClassManagerImpl.java:206: declaringInterpreter
has private access in bsh.BshClassManager
    [javac]                         declaringInterpreter.eval( new
InputStreamReader(in) );
    [javac]                         ^
    [javac]bsh/classpath/ClassManagerImpl.java:207: cannot resolve
symbol
    [javac] symbol  : class EvalError
    [javac] location: class bsh.classpath.ClassManagerImpl
    [javac]                 } catch ( EvalError e ) {

I'm figure I can fix the EvalError one with a simple import but I'm not
certain what the proper thing to do about the declaringInterpreter is.

Any suggestions?
-- 
Anthony Sciola <[email protected]>
Newbury Networks



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285