Hi all,
I have the following interface declaration:
public interface SomeInterface {
void someMethod() throws Exception;
}
I use a third party to generate an implementation of this class (JavaCC - for the curious)
The generated class looks naively like this:
public class SomeClass implements SomeInterface {
public void someMethod() throws SomeException {
// Does something
}
}
Where SomeException
is of course a subclass of Exception
.
(Not) surprisingly the code does not compile.
Does anyone have any input concerning this?
Thanks!
EDIT:
renamed the method SomeMethod()
to someMethod()
.
It had been a typo of mine... (sorry)
EDIT #2:
Sorry all - huge mistake of mine. Writing this example had forced me to strip down the code. I had not noticed that the mistake was elsewhere and not with the signature.
Thats the "magic" of runtime compile and custom class loading...