|
|
|
[
Permlink
| « Hide
]
Tim Steenwyk - 29/Jun/07 04:45 PM
I take back what I said, it doesn't create a derived abstract class. Using reflection, the compiled object (obj in the example) does not appear to be abstract even though it doesn't contain the run() method. Also creating an instance of the class wouldn't be possible if it was abstract.
The problem was that JANINO did not verify that each non-abstract class implements all abstract methods. Added that functionality; now you get
org.codehaus.janino.CompileException: Line 1, Column 1: Non-abstract class "SC" must implement method "void Base.run()" If the fix is very urgent for you, I can create a new JANINO release. Please let me know. CU Arno No, the fix isn't that urgent. I can wait until you release the next version.
Thanks |
||||||||||||||||||||||||||||||||||||||||||||