A
axel
Hello,
I have an abstract base class A with some function in a standard
package. And then I have a class B extends A with a lot of inner
classes. B is loaded by the URLClassLoader and also initialized with a
static initialize function cause B is designed as a singleton. In the
(private) ctor I create from every inner class 1 object and store it in
a hashmap.
The problem comes later if I want to access a function of A from an
inner class of B and I get this error:
"e"= IllegalAccessError (id=105)
cause= IllegalAccessError (id=105)
detailMessage= "tried to access method cmdpkg.A.foo()S from
class cmdpkg.B$_B1"
stackTrace= null
Where is the mistake. Is it a problem if the base class A is known
before and also in the jar for class B?
Thanks, Axel
I have an abstract base class A with some function in a standard
package. And then I have a class B extends A with a lot of inner
classes. B is loaded by the URLClassLoader and also initialized with a
static initialize function cause B is designed as a singleton. In the
(private) ctor I create from every inner class 1 object and store it in
a hashmap.
The problem comes later if I want to access a function of A from an
inner class of B and I get this error:
"e"= IllegalAccessError (id=105)
cause= IllegalAccessError (id=105)
detailMessage= "tried to access method cmdpkg.A.foo()S from
class cmdpkg.B$_B1"
stackTrace= null
Where is the mistake. Is it a problem if the base class A is known
before and also in the jar for class B?
Thanks, Axel