[ 
https://issues.apache.org/jira/browse/DERBY-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997533#comment-12997533
 ] 

Myrna van Lunteren commented on DERBY-2210:
-------------------------------------------

I don't think this can be resolved closed, as we never did anything about the 
assumption that running with the foundation means we don't have BigDecimal 
support at all.

To take the ParameterMappingTest, if I enable the suite as is by commenting out 
the if (JDBC.vmSupportsJDBC3()) check, and run the test, I get the error as 
reported with DERBY-2403.
If I in addition change the value if the 'HAVE_BIG_DECIMAL' to 'true' (e.g. by 
commenting out the check, or changing the value), I get the following error 
when running ParameterMappingTest:
1) 
testParameterMapping(org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest)java.lang.NoSuchMethodError:
 java/sql/ResultSet.getBigDecimal(I)Ljava/math/BigDecimal;
        at 
org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest.getXXX(ParameterMappingTest.java:1096)
        at 
org.apache.derbyTesting.functionTests.tests.jdbcapi.ParameterMappingTest.testParameterMapping(ParameterMappingTest.java:515)
        at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:195)
        at 
org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
        at 
org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

It seems to me that somehow, to get this to work, we need to somehow be able to 
map BigDecimals as for other jvms, but when we encounter one of the methods 
that aren't supported (like ResultSet.getBigDecimal() and the like) we need to 
do something else than for other jvms.

When this is resolved, we need to be able to run the ParameterMappingTest - see 
DERBY-2403.

> Change the base J2ME level to CDC/Foundation 1.1
> ------------------------------------------------
>
>                 Key: DERBY-2210
>                 URL: https://issues.apache.org/jira/browse/DERBY-2210
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Build tools, Services
>            Reporter: Daniel John Debrunner
>
> Foundation 1.1 maps to a subset of JDK 1.4 so might be a better base for J2ME 
> once JDK 1.3 support is removed, since Foundation 1.0 is based upon JDK 1.3. 
> Foundation 1.1 is backward compatible with 1.0, so JSR169 is supported.
> Foundation 1.0 (JSR219) went final 19 Aug, 2005.
> http://jcp.org/en/jsr/detail?id=219
> Would allow use throughout the codeline initCause() for Throwable.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to