Patches for faster interface dispatch, type checking
Godmar Back
gback@cs.utah.edu
Fri Dec 10 13:26:00 GMT 1999
>> If a class claims to implement a given interface but doesn't (which
> could happen if it was compiled against a different version of the
> interface), this is detected when the idispatch tables are generated
> (prior to class initialization) in _Jv_AppendPartialITable():
>
It's detected there, but you can't throw the exception at this point.
You have to delay it until run-time. After all, the call may never happen.
The JLS is pretty clear on that.
- Godmar
More information about the Java
mailing list