[JIRA] Commented: (JAXB-546) Custom IDResolver gets wrong target type with IDREF collections

  • From: "realsonic3 (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (JAXB-546) Custom IDResolver gets wrong target type with IDREF collections
  • Date: Thu, 20 Jun 2013 20:28:50 +0000 (UTC)
  • Auto-submitted: auto-generated


    [ 
https://java.net/jira/browse/JAXB-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=365602#action_365602
 ] 

realsonic3 commented on JAXB-546:
---------------------------------

Hello. Can you please update when this issue will be fixed? Thanks.

> Custom IDResolver gets wrong target type with IDREF collections
> ---------------------------------------------------------------
>
>                 Key: JAXB-546
>                 URL: https://java.net/jira/browse/JAXB-546
>             Project: jaxb
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.1.7
>         Environment: Operating System: All
> Platform: All
>            Reporter: uryssel
>            Assignee: Iaroslav Savytskyi
>            Priority: Minor
>             Fix For: not determined
>
>         Attachments: Reflect.java
>
>
> The issue is described in the forum:
> http://forums.java.net/jive/thread.jspa?threadID=45481&tstart=120
> When using IDREFed collections:
> @XmlIDREF
> Set<Y> ySet;
> the resolve() method of a custom IDResolver gets Object.class as targetType,
> but it should be Y.class. This results on wrong ID resolving. 
> If I use an empty derived class instead:
> class YSet extends HashSet<Y> {}
> ...
> @XmlIDREF
> YSet ySet;
> then I get the right targetType in the resolve() method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Commented: (JAXB-546) Custom IDResolver gets wrong target type with IDREF collections

realsonic3 (JIRA) 06/20/2013

<Possible follow-up(s)>

[JIRA] Commented: (JAXB-546) Custom IDResolver gets wrong target type with IDREF collections

Iaroslav Savytskyi (JIRA) 06/21/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close