Zgodnie z dokumetcją
public class IllegalAccessError
extends IncompatibleClassChangeErrorThrown if an application attempts to access or modify a field, or to call a method that it does not have access to.
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
U mnie kompilacja przebiegała bez zarzutu, ale podczas wykonywania wiersz
InputText input = new InputText(this,"Tytuł:",title.getTex`code> rzucał wyjątkiem`
Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: tried to access class InputText from class Creator
(Klasa InputText
to moja klasa narzędziowa dziedzicząca po JDialog
). Po zmianie nazwy klasy na InputingText
wszystko działa.
Ma ktoś hipotezę wyjaśniającą to zjawisko?
java
ijavaw
widzą co innego.