db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5798) Disable i18n/JapanCodeConversion.sql on platforms that don't support EUC_JP or SJIS
Date Wed, 06 Jun 2012 11:31:23 GMT

     [ https://issues.apache.org/jira/browse/DERBY-5798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Knut Anders Hatlen updated DERBY-5798:

    Attachment: d5798-1a.diff

Attaching a patch that adds a new JUnit test, JapanCodeConversionTest, and removes the old
JapanCodeConversion.sql test. The new test is skipped if it runs on a JVM that doesn't support

I ran suites.All and derbyall successfully with the patch.

Touched files:

- tests/i18n/JapanCodeConversionTest.java

Added new test class.

- tests/i18n/_Suite.java

Run the new test as part of the i18n suite.

- master/JapanCodeConversion.out
- tests/i18n/JapanCodeConversion.sql
- tests/i18n/JapanCodeConversion_app.properties
- tests/i18n/data/jap_EUC_JP.ctrl
- tests/i18n/data/jap_SJIS.ctrl

Removed since they are not used by the new test. (The latter two were not used by the original
test either, as far as I could tell.)

- suites/i18nTest.runall

Stop running the old test.

- tests/i18n/copyfiles.ant
- tests/i18n/data/copyfiles.ant

Removed references to removed files.
> Disable i18n/JapanCodeConversion.sql on platforms that don't support EUC_JP or SJIS
> -----------------------------------------------------------------------------------
>                 Key: DERBY-5798
>                 URL: https://issues.apache.org/jira/browse/DERBY-5798
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions:
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d5798-1a.diff
> I ran derbyall on Java SE for Embedded 7, which doesn't support the EUC_JP or SJIS encodings.
i18n/JapanCodeConversion.sql failed because of this:
> ********* Diff file derbyall/i18nTest/JapanCodeConversion.diff
> *** Start: JapanCodeConversion jdk1.7.0_04-ea derbyall:i18nTest 2012-05-31 15:10:02 ***
> 55 del
> < 0 rows inserted/updated/deleted
> 55a55,58
> > ERROR 38000: The exception 'java.sql.SQLException: The exception 'java.lang.reflect.InvocationTargetException'
was thrown while evaluating an expression.' was thrown while evaluating an expression.
> > ERROR 38000: The exception 'java.lang.reflect.InvocationTargetException' was thrown
while evaluating an expression.
> > ERROR XJ001: Java exception: ': java.lang.reflect.InvocationTargetException'.
> > ERROR XJ001: Java exception: 'java.io.UnsupportedEncodingException: EUC_JP'.
> 59,74d61
> (...)
> We should skip the test on platforms that don't support these encodings.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message