You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "David Jencks (JIRA)" <xm...@xml.apache.org> on 2006/09/27 02:31:52 UTC
[jira] Created: (XMLBEANS-290) QNameSet generated by
QNameSet.forArray(QName[]) can't be unioned with other QNameSets
QNameSet generated by QNameSet.forArray(QName[]) can't be unioned with other QNameSets
--------------------------------------------------------------------------------------
Key: XMLBEANS-290
URL: http://issues.apache.org/jira/browse/XMLBEANS-290
Project: XMLBeans
Issue Type: Bug
Affects Versions: Version 2
Reporter: David Jencks
I discovered that a QNameSet created from QNameSet.forArray(QName[]) cannot be used as an argument to QNameSet.union(qnameSetFromArray). The set-based factory method
QNameSet.forSets(null, Collections.EMPTY_SET, Collections.EMPTY_SET, qnames);
works fine. I am currently using xmlbeans 2.0 but it looks to me by examining the code that the problem is still present in trunk. I believe that the problem is that in
public static QNameSet forArray(QName[] includedQNames)
{
if (includedQNames == null)
throw new IllegalArgumentException("includedQNames cannot be null");
return new QNameSet(null, new HashSet(), null, new HashSet(Arrays.asList(includedQNames)));
}
the third set is null rather than empty.
--
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] Resolved: (XMLBEANS-290) QNameSet generated by
QNameSet.forArray(QName[]) can't be unioned with other QNameSets
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Preotiuc-Pietro resolved XMLBEANS-290.
-------------------------------------------
Resolution: Fixed
Fix Version/s: Version 2.2.1
You're right, I had forgotten to update the JIRA issue, sorry.
> QNameSet generated by QNameSet.forArray(QName[]) can't be unioned with other QNameSets
> --------------------------------------------------------------------------------------
>
> Key: XMLBEANS-290
> URL: https://issues.apache.org/jira/browse/XMLBEANS-290
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2
> Reporter: David Jencks
> Fix For: Version 2.2.1
>
>
> I discovered that a QNameSet created from QNameSet.forArray(QName[]) cannot be used as an argument to QNameSet.union(qnameSetFromArray). The set-based factory method
> QNameSet.forSets(null, Collections.EMPTY_SET, Collections.EMPTY_SET, qnames);
> works fine. I am currently using xmlbeans 2.0 but it looks to me by examining the code that the problem is still present in trunk. I believe that the problem is that in
> public static QNameSet forArray(QName[] includedQNames)
> {
> if (includedQNames == null)
> throw new IllegalArgumentException("includedQNames cannot be null");
> return new QNameSet(null, new HashSet(), null, new HashSet(Arrays.asList(includedQNames)));
> }
> the third set is null rather than empty.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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-290) QNameSet generated by
QNameSet.forArray(QName[]) can't be unioned with other QNameSets
Posted by "David Jencks (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462387 ]
David Jencks commented on XMLBEANS-290:
---------------------------------------
Isn't this fixed in rev 465425?
> QNameSet generated by QNameSet.forArray(QName[]) can't be unioned with other QNameSets
> --------------------------------------------------------------------------------------
>
> Key: XMLBEANS-290
> URL: https://issues.apache.org/jira/browse/XMLBEANS-290
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2
> Reporter: David Jencks
>
> I discovered that a QNameSet created from QNameSet.forArray(QName[]) cannot be used as an argument to QNameSet.union(qnameSetFromArray). The set-based factory method
> QNameSet.forSets(null, Collections.EMPTY_SET, Collections.EMPTY_SET, qnames);
> works fine. I am currently using xmlbeans 2.0 but it looks to me by examining the code that the problem is still present in trunk. I believe that the problem is that in
> public static QNameSet forArray(QName[] includedQNames)
> {
> if (includedQNames == null)
> throw new IllegalArgumentException("includedQNames cannot be null");
> return new QNameSet(null, new HashSet(), null, new HashSet(Arrays.asList(includedQNames)));
> }
> the third set is null rather than empty.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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-290) QNameSet generated by
QNameSet.forArray(QName[]) can't be unioned with other QNameSets
Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-290?page=comments#action_12442112 ]
Radu Preotiuc-Pietro commented on XMLBEANS-290:
-----------------------------------------------
You are right, I'll check in the change soon.
> QNameSet generated by QNameSet.forArray(QName[]) can't be unioned with other QNameSets
> --------------------------------------------------------------------------------------
>
> Key: XMLBEANS-290
> URL: http://issues.apache.org/jira/browse/XMLBEANS-290
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2
> Reporter: David Jencks
>
> I discovered that a QNameSet created from QNameSet.forArray(QName[]) cannot be used as an argument to QNameSet.union(qnameSetFromArray). The set-based factory method
> QNameSet.forSets(null, Collections.EMPTY_SET, Collections.EMPTY_SET, qnames);
> works fine. I am currently using xmlbeans 2.0 but it looks to me by examining the code that the problem is still present in trunk. I believe that the problem is that in
> public static QNameSet forArray(QName[] includedQNames)
> {
> if (includedQNames == null)
> throw new IllegalArgumentException("includedQNames cannot be null");
> return new QNameSet(null, new HashSet(), null, new HashSet(Arrays.asList(includedQNames)));
> }
> the third set is null rather than empty.
--
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