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-4868) Remove Types.BIT/Types.BOOLEAN switch in JVMInfo
Date Wed, 27 Oct 2010 12:57:23 GMT

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

Knut Anders Hatlen updated DERBY-4868:

    Attachment: bit-boolean.diff

The attached patch removes the code that initializes the field JAVA_SQL_TYPES_BOOLEAN in JVMInfo,
since it's always initialized to Types.BOOLEAN. It also makes BaseTypeIdImpl use Types.BOOLEAN
directly instead of the field from JVMInfo.

> Remove Types.BIT/Types.BOOLEAN switch in JVMInfo
> ------------------------------------------------
>                 Key: DERBY-4868
>                 URL: https://issues.apache.org/jira/browse/DERBY-4868
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For:
>         Attachments: bit-boolean.diff
> JVMInfo contains code to switch between using Types.BIT and Types.BOOLEAN based on the
JVM version. This was needed when we supported Java 1.3, since Types.BOOLEAN was introduced
in Java 1.4 and so Types.BIT had to be used instead on old platforms. Currently, all supported
JDBC versions (including JSR-169 for small devices) have Types.BOOLEAN, so the code is no
longer needed.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message