You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Stepan Koltsov (JIRA)" <xm...@xml.apache.org> on 2006/10/10 23:00:19 UTC
[jira] Created: (XMLBEANS-292) override XMLObject.copy() signature
if compiling for JDK1.5
override XMLObject.copy() signature if compiling for JDK1.5
-----------------------------------------------------------
Key: XMLBEANS-292
URL: http://issues.apache.org/jira/browse/XMLBEANS-292
Project: XMLBeans
Issue Type: Wish
Affects Versions: Version 2.2.1
Reporter: Stepan Koltsov
Priority: Minor
Hello,
XMLObject.copy() returns deep copy of itself. JDK 1.5 supports overriding of return value in methods of subclasses.
So, could you, please, specify more concrete return value in overriden object in inheritors of XMLObject? For example, if I have
interface Apple extends XMLObject
it should have method
Apple copy();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-292) override XMLObject.copy()
signature if compiling for JDK1.5
Posted by "Wing Yew Poon (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770118#action_12770118 ]
Wing Yew Poon commented on XMLBEANS-292:
----------------------------------------
We can consider this for the release (post-2.5) when we finally support only jdk 1.5 or higher.
> override XMLObject.copy() signature if compiling for JDK1.5
> -----------------------------------------------------------
>
> Key: XMLBEANS-292
> URL: https://issues.apache.org/jira/browse/XMLBEANS-292
> Project: XMLBeans
> Issue Type: Wish
> Affects Versions: Version 2.2.1
> Reporter: Stepan Koltsov
> Priority: Minor
>
> Hello,
> XMLObject.copy() returns deep copy of itself. JDK 1.5 supports overriding of return value in methods of subclasses.
> So, could you, please, specify more concrete return value in overriden object in inheritors of XMLObject? For example, if I have
> interface Apple extends XMLObject
> it should have method
> Apple copy();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-292) override XMLObject.copy()
signature if compiling for JDK1.5
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-292?page=comments#action_12443649 ]
Radu Preotiuc-Pietro commented on XMLBEANS-292:
-----------------------------------------------
I agree that there are ways in which the generated code can take advantage of the new JDK1.5 feature and this is certainly one of them.
> override XMLObject.copy() signature if compiling for JDK1.5
> -----------------------------------------------------------
>
> Key: XMLBEANS-292
> URL: http://issues.apache.org/jira/browse/XMLBEANS-292
> Project: XMLBeans
> Issue Type: Wish
> Affects Versions: Version 2.2.1
> Reporter: Stepan Koltsov
> Priority: Minor
>
> Hello,
> XMLObject.copy() returns deep copy of itself. JDK 1.5 supports overriding of return value in methods of subclasses.
> So, could you, please, specify more concrete return value in overriden object in inheritors of XMLObject? For example, if I have
> interface Apple extends XMLObject
> it should have method
> Apple copy();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org