OpenJava1.1_20020522: Problems with generating inner classes
Status: Beta
Brought to you by:
tatsubori
In attempting to work around the anonymous class
problem. I decided to generate inner classes for the
attributes' Event classes instead of using anonymous
classes.
I found "OJClass.addClass(OJClass cls)" but no "Class
makeClass(Environment env, String expr)" method exists
in OJClass, analogous to the "Statement
makeStatement(Environment env, String expr)" method.
So I attempted to create my own:
I get the following error:
OJClass.forNameAnyway() failed for :
sonema.mutate.test.Color
openjava.mop.OJClassNotFoundException:
sonema.mutate.test.Color
Am I constructing the ClassEnvironment for
parser.ClassDeclaration(cenv) incorrectly?
Thanks Again,
Kurt Stephens