You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Ilan Kirsh (JIRA)" <ji...@apache.org> on 2007/09/06 17:32:31 UTC
[jira] Created: (JDO-524) SELECT lastname INTO java.lang.Long - is
a negative test?
SELECT lastname INTO java.lang.Long - is a negative test?
---------------------------------------------------------
Key: JDO-524
URL: https://issues.apache.org/jira/browse/JDO-524
Project: JDO
Issue Type: Test
Components: tck2
Affects Versions: JDO 2 final
Reporter: Ilan Kirsh
The second negative test query in org.apache.jdo.tck.query.result.ResultClassRequirements is:
"SELECT lastname INTO java.lang.Long FROM org.apache.jdo.tck.pc.company.FullTimeEmployee".
Exception is expected by the test, but because java.lang.Long has a constructor with one string argument - this query should be valid, unless the spec defines special rules for java.lang wrapper types as result types.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (JDO-524) SELECT lastname INTO java.lang.Long - is
a negative test?
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Bouschen resolved JDO-524.
----------------------------------
Resolution: Fixed
Fix Version/s: JDO 2 maintenance release 1
Checked in the patch (see revision 575469).
> SELECT lastname INTO java.lang.Long - is a negative test?
> ---------------------------------------------------------
>
> Key: JDO-524
> URL: https://issues.apache.org/jira/browse/JDO-524
> Project: JDO
> Issue Type: Test
> Components: tck2
> Affects Versions: JDO 2 final
> Reporter: Ilan Kirsh
> Assignee: Michael Bouschen
> Fix For: JDO 2 maintenance release 1
>
> Attachments: JDO-524.patch
>
>
> The second negative test query in org.apache.jdo.tck.query.result.ResultClassRequirements is:
> "SELECT lastname INTO java.lang.Long FROM org.apache.jdo.tck.pc.company.FullTimeEmployee".
> Exception is expected by the test, but because java.lang.Long has a constructor with one string argument - this query should be valid, unless the spec defines special rules for java.lang wrapper types as result types.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JDO-524) SELECT lastname INTO java.lang.Long - is
a negative test?
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Bouschen updated JDO-524:
---------------------------------
Attachment: JDO-524.patch
I propose to change the SELECT clause to select the FullTimeEmployee instance, i.e.
SELECT this INTO java.lang.Long FROM org.apache.jdo.tck.pc.company.FullTimeEmployee
Attached you find a patch changing the query in tck2 and tck2-legacy.
> SELECT lastname INTO java.lang.Long - is a negative test?
> ---------------------------------------------------------
>
> Key: JDO-524
> URL: https://issues.apache.org/jira/browse/JDO-524
> Project: JDO
> Issue Type: Test
> Components: tck2
> Affects Versions: JDO 2 final
> Reporter: Ilan Kirsh
> Assignee: Michael Bouschen
> Attachments: JDO-524.patch
>
>
> The second negative test query in org.apache.jdo.tck.query.result.ResultClassRequirements is:
> "SELECT lastname INTO java.lang.Long FROM org.apache.jdo.tck.pc.company.FullTimeEmployee".
> Exception is expected by the test, but because java.lang.Long has a constructor with one string argument - this query should be valid, unless the spec defines special rules for java.lang wrapper types as result types.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JDO-524) SELECT lastname INTO java.lang.Long -
is a negative test?
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526919 ]
Craig Russell commented on JDO-524:
-----------------------------------
Looks good.
> SELECT lastname INTO java.lang.Long - is a negative test?
> ---------------------------------------------------------
>
> Key: JDO-524
> URL: https://issues.apache.org/jira/browse/JDO-524
> Project: JDO
> Issue Type: Test
> Components: tck2
> Affects Versions: JDO 2 final
> Reporter: Ilan Kirsh
> Assignee: Michael Bouschen
> Attachments: JDO-524.patch
>
>
> The second negative test query in org.apache.jdo.tck.query.result.ResultClassRequirements is:
> "SELECT lastname INTO java.lang.Long FROM org.apache.jdo.tck.pc.company.FullTimeEmployee".
> Exception is expected by the test, but because java.lang.Long has a constructor with one string argument - this query should be valid, unless the spec defines special rules for java.lang wrapper types as result types.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (JDO-524) SELECT lastname INTO java.lang.Long - is
a negative test?
Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Craig Russell reassigned JDO-524:
---------------------------------
Assignee: Michael Bouschen
Changing the type of the selected element from lastname to something else should fix this.
> SELECT lastname INTO java.lang.Long - is a negative test?
> ---------------------------------------------------------
>
> Key: JDO-524
> URL: https://issues.apache.org/jira/browse/JDO-524
> Project: JDO
> Issue Type: Test
> Components: tck2
> Affects Versions: JDO 2 final
> Reporter: Ilan Kirsh
> Assignee: Michael Bouschen
>
> The second negative test query in org.apache.jdo.tck.query.result.ResultClassRequirements is:
> "SELECT lastname INTO java.lang.Long FROM org.apache.jdo.tck.pc.company.FullTimeEmployee".
> Exception is expected by the test, but because java.lang.Long has a constructor with one string argument - this query should be valid, unless the spec defines special rules for java.lang wrapper types as result types.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.