reference to subclass
Jonathan Edwards <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
In bsh2.0b1 a references to a subclass from a superclass causes a
recursive define, which seems to be confused with a (unsupported)
synonymous class. An uncommon scenario, but it does happen sometimes.
Regards,
Jonathan
Foo.java: class Foo {Bar bar;}
Bar.java: class Bar extends Foo {}
print(new Foo());
Loading class from source file: /Foo.java
Loading class from source file: /Bar.java
Loading class from source file: /Foo.java
bsh.InterpreterError: Defining class problem: Foo: BeanShell cannot yet
simultan
eously define two or more dependant classes of the same name. Attempt
to define
: Foo while defining: Foo
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click