You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "David T. Adcox (JIRA)" <tu...@ws.apache.org> on 2007/03/14 03:40:09 UTC
[jira] Created: (TUSCANY-1170) The YearMonthDay property type
throws format exception when retrieving long value
The YearMonthDay property type throws format exception when retrieving long value
---------------------------------------------------------------------------------
Key: TUSCANY-1170
URL: https://issues.apache.org/jira/browse/TUSCANY-1170
Project: Tuscany
Issue Type: Bug
Components: Java SDO Implementation
Affects Versions: Java-SDO-M3
Environment: n/a
Reporter: David T. Adcox
Retrieval of a YearMonthDay SDO property type via the getLong() method causes a java.lang.NumberFormatException. The value is converted to a String when set. The Long.parseLong() doesn't like the alpha characters encoded in the string created. The DataObjectUtil getLong method seems to be ready to accept a Date object type, but the storage type is String, so that path is not taken. Attached is a sample class and schema that will demonstrate the problem.
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Resolved: (TUSCANY-1170) The YearMonthDay property type
throws format exception when retrieving long value
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson resolved TUSCANY-1170.
-------------------------------------
Resolution: Invalid
This is behaving as per the SDO 2.1 spec. An issue has already been raised for the Spec review group, so hopefully this issue will be resolved in SDO 3.
> The YearMonthDay property type throws format exception when retrieving long value
> ---------------------------------------------------------------------------------
>
> Key: TUSCANY-1170
> URL: https://issues.apache.org/jira/browse/TUSCANY-1170
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-M3
> Environment: n/a
> Reporter: David T. Adcox
> Attachments: api_test.xsd, Test1170.java
>
>
> Retrieval of a YearMonthDay SDO property type via the getLong() method causes a java.lang.NumberFormatException. The value is converted to a String when set. The Long.parseLong() doesn't like the alpha characters encoded in the string created. The DataObjectUtil getLong method seems to be ready to accept a Date object type, but the storage type is String, so that path is not taken. Attached is a sample class and schema that will demonstrate the problem.
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
[jira] Updated: (TUSCANY-1170) The YearMonthDay property type
throws format exception when retrieving long value
Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David T. Adcox updated TUSCANY-1170:
------------------------------------
Attachment: Test1170.java
api_test.xsd
> The YearMonthDay property type throws format exception when retrieving long value
> ---------------------------------------------------------------------------------
>
> Key: TUSCANY-1170
> URL: https://issues.apache.org/jira/browse/TUSCANY-1170
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-M3
> Environment: n/a
> Reporter: David T. Adcox
> Attachments: api_test.xsd, Test1170.java
>
>
> Retrieval of a YearMonthDay SDO property type via the getLong() method causes a java.lang.NumberFormatException. The value is converted to a String when set. The Long.parseLong() doesn't like the alpha characters encoded in the string created. The DataObjectUtil getLong method seems to be ready to accept a Date object type, but the storage type is String, so that path is not taken. Attached is a sample class and schema that will demonstrate the problem.
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org