|
From: <bc...@wo...> - 2001-01-04 15:13:16
|
[In a bug report we got:]
>For example. If jython class Log inherits javax.swing.text.PlainDocument
>we get this code:
>
>public javax.swing.text.AbstractDocument$AbstractElement
>createDefaultRoot() {
> return super.createDefaultRoot();
where the '$' in the inner class name confuses the java compiler in
JDK1.3. Does anyone know how we can get a more compiler friendly class
name (When replacing the '$' with a '.', even JDK1.3 is happy). Keep in
mind that a $ is valid (if somewhat unlikely) character in class names.
I have made a patch which will retrieve the class as a resource and
parse the bytecode to find the "InnerClasses" attributes. From the
"InnerClasses" that correspond to this_class, I can get the outerclass
and the innerclass names.
I just hoped there were a better way. Does any know if there is?
regards,
finn
|