Re: [JIRA] Assigned: (NETREXX-95) Implement covariant return types as allowed in Java 5+

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] Assigned: (NETREXX-95) Implement covariant return types as allowed in Java 5+

Aviatrexx
"Clownable"?  Just checking to see if anyone reads these things,
aren't you, Kermit... ;-)

On 1/15/2013 00:34 Kermit Kiser (JIRA) said:

>
>       [ http://kenai.com/jira/browse/NETREXX-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Kermit Kiser reassigned NETREXX-95:
> -----------------------------------
>
>      Assignee: Kermit Kiser
>
>> Implement covariant return types as allowed in Java 5+
>> ------------------------------------------------------
>>
>>                  Key: NETREXX-95
>>                  URL: http://kenai.com/jira/browse/NETREXX-95
>>              Project: netrexx
>>           Issue Type: Improvement
>>           Components: Translator
>>     Affects Versions: NetRexxC-3.01
>>          Environment: NetRexx Translator
>>             Reporter: Kermit Kiser
>>             Assignee: Kermit Kiser
>>             Priority: Minor
>>
>> NetRexx does not allow covariant return types which have been allowed in Java since the version 1.5 release.
>> Example 1:
>> If class covariant as defined below extends class cosuper below, NetRexx 3.01 translate fails with the error message:
>> Error: Method has return type 'covariant', so cannot override or implement method of return type 'cosuper' in class 'cosuper'
>> class covariant extends cosuper
>> method doit returns covariant
>> return this
>> - Here is class cosuper:
>> class cosuper
>> method doit returns cosuper
>> return this
>> Example 2:
>> If class Clowntest as defined below implements interface Clownable as defined below, NetRexx 3.01 translate will fail with the error message:
>> Error: Method has return type 'Clowntest', so cannot override or implement method of return type 'Clownable' in class 'Clownable'
>> class Clowntest implements Clownable
>> method clownme returns Clowntest
>> return this
>> -- Here is the interface definition for Clownable:
>> class Clownable interface
>> method clownme returns Clownable
>> Note that this issue is not filed as a bug since it is technically working as designed. However, since Java 1.5 compatibility is a reasonable target for NetRexx, this could also be viewed as a bug.
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] Assigned: (NETREXX-95) Implement covariant return types as allowed in Java 5+

Kermit Kiser
LOL

Ya got me...

On 1/14/2013 7:46 PM, Chip Davis wrote:

> "Clownable"? Just checking to see if anyone reads these things, aren't
> you, Kermit... ;-)
>
> On 1/15/2013 00:34 Kermit Kiser (JIRA) said:
>>
>>       [
>> http://kenai.com/jira/browse/NETREXX-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>> ]
>>
>> Kermit Kiser reassigned NETREXX-95:
>> -----------------------------------
>>
>>      Assignee: Kermit Kiser
>>
>>> Implement covariant return types as allowed in Java 5+
>>> ------------------------------------------------------
>>>
>>>                  Key: NETREXX-95
>>>                  URL: http://kenai.com/jira/browse/NETREXX-95
>>>              Project: netrexx
>>>           Issue Type: Improvement
>>>           Components: Translator
>>>     Affects Versions: NetRexxC-3.01
>>>          Environment: NetRexx Translator
>>>             Reporter: Kermit Kiser
>>>             Assignee: Kermit Kiser
>>>             Priority: Minor
>>>
>>> NetRexx does not allow covariant return types which have been
>>> allowed in Java since the version 1.5 release.
>>> Example 1:
>>> If class covariant as defined below extends class cosuper below,
>>> NetRexx 3.01 translate fails with the error message:
>>> Error: Method has return type 'covariant', so cannot override or
>>> implement method of return type 'cosuper' in class 'cosuper'
>>> class covariant extends cosuper
>>>     method doit returns covariant
>>>         return this
>>> - Here is class cosuper:
>>> class cosuper
>>>     method doit returns cosuper
>>>         return this
>>> Example 2:
>>> If class Clowntest as defined below implements interface Clownable
>>> as defined below, NetRexx 3.01 translate will fail with the error
>>> message:
>>> Error: Method has return type 'Clowntest', so cannot override or
>>> implement method of return type 'Clownable' in class 'Clownable'
>>> class Clowntest implements Clownable
>>>     method clownme returns Clowntest
>>>         return this
>>> -- Here is the interface definition for Clownable:
>>> class Clownable interface
>>>     method clownme returns Clownable
>>> Note that this issue is not filed as a bug since it is technically
>>> working as designed. However, since Java 1.5 compatibility is a
>>> reasonable target for NetRexx, this could also be viewed as a bug.
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] Assigned: (NETREXX-95) Implement covariant return types as allowed in Java 5+

ThSITC
In reply to this post by Aviatrexx
Reading it, Chip, but I have to admit my Java knowledge is not yet
sufficient to understand this issue fully!
Thomas.
===============================================================================
Am 15.01.2013 06:46, schrieb Chip Davis:

> "Clownable"? Just checking to see if anyone reads these things, aren't
> you, Kermit... ;-)
>
> On 1/15/2013 00:34 Kermit Kiser (JIRA) said:
>>
>>       [
>> http://kenai.com/jira/browse/NETREXX-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>> ]
>>
>> Kermit Kiser reassigned NETREXX-95:
>> -----------------------------------
>>
>>      Assignee: Kermit Kiser
>>
>>> Implement covariant return types as allowed in Java 5+
>>> ------------------------------------------------------
>>>
>>>                  Key: NETREXX-95
>>>                  URL: http://kenai.com/jira/browse/NETREXX-95
>>>              Project: netrexx
>>>           Issue Type: Improvement
>>>           Components: Translator
>>>     Affects Versions: NetRexxC-3.01
>>>          Environment: NetRexx Translator
>>>             Reporter: Kermit Kiser
>>>             Assignee: Kermit Kiser
>>>             Priority: Minor
>>>
>>> NetRexx does not allow covariant return types which have been
>>> allowed in Java since the version 1.5 release.
>>> Example 1:
>>> If class covariant as defined below extends class cosuper below,
>>> NetRexx 3.01 translate fails with the error message:
>>> Error: Method has return type 'covariant', so cannot override or
>>> implement method of return type 'cosuper' in class 'cosuper'
>>> class covariant extends cosuper
>>>     method doit returns covariant
>>>         return this
>>> - Here is class cosuper:
>>> class cosuper
>>>     method doit returns cosuper
>>>         return this
>>> Example 2:
>>> If class Clowntest as defined below implements interface Clownable
>>> as defined below, NetRexx 3.01 translate will fail with the error
>>> message:
>>> Error: Method has return type 'Clowntest', so cannot override or
>>> implement method of return type 'Clownable' in class 'Clownable'
>>> class Clowntest implements Clownable
>>>     method clownme returns Clowntest
>>>         return this
>>> -- Here is the interface definition for Clownable:
>>> class Clownable interface
>>>     method clownme returns Clownable
>>> Note that this issue is not filed as a bug since it is technically
>>> working as designed. However, since Java 1.5 compatibility is a
>>> reasonable target for NetRexx, this could also be viewed as a bug.
>>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria,
Europe

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com