[
http://jira.codehaus.org/browse/JANINO-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=186095#action_186095 ]
Matt Fowles commented on JANINO-136:
------------------------------------
Technically, this feature was added to Java in 1.5; however, the implementation is easy and it doesn't break any existing java 1.2 apps, so I think we should include it.
> Covariant return types for abstract methods fail to compile
> -----------------------------------------------------------
>
> Key: JANINO-136
> URL:
http://jira.codehaus.org/browse/JANINO-136> Project: Janino
> Issue Type: Bug
> Reporter: Matt Fowles
> Assignee: Arno Unkrig
> Attachments: covariant.diff, CovariantReturns.java
>
>
> Subclasses are allowed to refine the return type of abstract methods (i.e. provide covariant return types). Javac will compile CovariantReturns.java but janino will hork on it. The attached patch fixes the problem and adds a test for it.
> You can find a fixed version of this at
http://code.google.com/p/janino-streambase/--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email