[jira] Commented: (JDO-263) TestArrayCollections: Field "org.apache.jdo.tck.pc.fi
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-263) TestArrayCollections: Field "org.apache.jdo.tck.pc.fi




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-263) TestArrayCollections: Field "org.apache.jdo.tck.pc.fi  
Andy Jefferson (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-06-06 07:45 AM

[ [url]http://issues.apache.org/jira/browse/JDO-263?page=comments#action_12361932[/
url] ]

Andy Jefferson commented on JDO-263:
------------------------------------

Hi Michelle,
looks much better now. Not sure what you're expecting from me on this one. T
he error is

test(org.apache.jdo.tck.models.fieldtypes.TestArrayCollections)junit.framewo
rk.AssertionFailedError: Assertion (TestArrayCollections) failed:
[java] Expected and observed do not match!!
[java] For element 12[0], expected = 2007908.54548, actual = 2007908
.54548000008799135684967041015625 .
[java] For element 12[1], expected = 0.544, actual = 0.5440000000000
00039079850466805510222911834716796875 .
[java] For element 12[2], expected = 3002323232.545454, actual = 300
2323232.5454540252685546875 .
[java] For element 12[3], expected = 64564645656.78657, actual = 645
64645656.78656768798828125 .
[java] For element 12[4], expected = 4564565465.2342, actual = 45645
65465.23419952392578125 .
[java]      at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:546)
[java]      at org.apache.jdo.tck.models.fieldtypes.TestArrayCollections
.checkValues(TestArrayCollections.java:194)
[java]      at org.apache.jdo.tck.models.fieldtypes.TestArrayCollections
.runTest(TestArrayCollections.java:111)
[java]      at org.apache.jdo.tck.models.fieldtypes.TestArrayCollections
.test(TestArrayCollections.java:73)

so we have a series of floating point numbers that were stored in the RDBMS 
and when retrieved have a different precision. We know that RDBMS don't pres
erve the precision exactly (as shown on other TCK tests). Does the TCK not h
ave a method to perform rou
nding so that the numbers can be compared at the precision of the value that
 was input ? With all of the differences above, if the actual value is round
ed up or down (depending on the number) they would be identical and the test
 would pass.

> TestArrayCollections: Field "org.apache.jdo.tck.pc.fieldtypes.ArrayCollect
ions.ArrayOfObject1" is declared as a reference type (interface/Object) but 
no implementation classes of "java.lang.Object" have been found!
> --------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------
>
>          Key: JDO-263
>          URL: http://issues.apache.org/jira/browse/JDO-263
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michelle Caisse
>     Assignee: Andy Jefferson
>  Attachments: jdo-263.patch
>
> test(org.apache.jdo.tck.models.fieldtypes.TestArrayCollections)javax.jdo.JDOUserEx
ception: Field "org.apache.jdo.tck.pc.fieldtypes.ArrayCollections.ArrayOfObject1" is
 declared as a reference type (interface/Object) but no implementation classes of "j
ava
.lang.Object" have been found!
> 	at org.jpox.metadata.MetaDataUtils.getImplementationNamesForReferenceFiel
d(MetaDataUtils.java:594)
> 	at org.jpox.store.rdbms.table.ColumnCreator.createColumnsForReferenceFiel
d(ColumnCreator.java:184)
> 	at org.jpox.store.rdbms.table.ColumnCreator.createColumnsForField(ColumnC
reator.java:296)
> 	at org.jpox.store.rdbms.table.ColumnCreator.createColumns(ColumnCreator.j
ava:95)
> 	at org.jpox.store.rdbms.table.ArrayTable.initialize(ArrayTable.java:83)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate
(RDBMSManager.java:2404)
> 	at org.jpox.store.rdbms.RDBMSManager$ClassAdder.run(RDBMSManager.java:203
3)
> 	at org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager
.java:1893)
> 	at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:479)
> 	at org.jpox.store.rdbms.RDBMSManager.addClass(RDBMSManager.java:493)
> 	at org.jpox.store.rdbms.RDBMSManager.getDatastoreClass(RDBMSManager.java:
766)
> 	at org.jpox.state.StateManagerImpl.populateStrategyFields(StateManagerImp
l.java:781)
> 	at org.jpox.state.StateManagerImpl.<init>(StateManagerImpl.java:584)
> 	at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPer
sistenceManager.java:1076)
> 	at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistence
Manager.java:1131)
> 	at org.apache.jdo.tck.models.fieldtypes.TestArrayCollections.runTest(Test
ArrayCollections.java:93)
> 	at org.apache.jdo.tck.models.fieldtypes.TestArrayCollections.test(TestArr
ayCollections.java:69)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
> 	at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
> 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120
)
> 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:29 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register