I'm having a problem getting on with an existing tool that would just not work kindly!
Being in a fighting process with this tool, I have managed somehow in getting it to run partially, but there are still remaining problems.
Well today's problem is called "java.lang.IllegalAccessError: class A cannot access its superclass B"
I feel I understand what the problem is... Class B is somehow protected from being access by class A! Now, if B was protected by making it private then the compiler should have caught that. But my problem arises during run time execution.
Both classes A & B are in the same package! And having looked at the code I can't see where B might have been protected .
Note: I am running the tool on Java 1.4 (yes! An old and dusted version of Java, but I have no choice other wise the tool experiences state explosion problem on Java 5 & 6!)
Any advice, ideas, suggestions... my mind is open to try anything!!
Please supply more details. Which tool? Which folders/jars/packages are the two classes in? Do you have access to those directories etc? Are you attempting to gain access to private members? Has anybody recompiled the superclass since it was created?
Don't know, I am afraid. Is there a newer version of the .jar available anywhere? Have you read the details of why that Error is thrown? It suggests something has gone wrong with the class after it was compiled, which is why I am asking about compiling. And why were those classes (which are written in old-fashioned Java anyway) compiled with an older JDK?