db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5519) Update code in JVMInfo#derbyVMLevel to give correct results for Java 7 and provisionally for 8.
Date Wed, 14 Mar 2012 16:42:40 GMT

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

Kathey Marsden commented on DERBY-5519:
---------------------------------------

I was looking at backporting this to 10.8, but maybe 10.8 is correct.  I seem to recall a
discussion tha
t 10.8 should not report JDBC 4.1 yet.  Currently in 10.8 we have 	case J2SE_17: return "Java
SE 7 - JDBC 4.0";
Is that right?

Thanks

Kathey


                
> Update code in JVMInfo#derbyVMLevel to give correct results for Java 7 and provisionally
for 8.
> -----------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5519
>                 URL: https://issues.apache.org/jira/browse/DERBY-5519
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>              Labels: newbie
>             Fix For: 10.9.0.0
>
>         Attachments: derby-5519.diff
>
>
> The method derbyVMLevel gives correct result only up to and including Java 6, cf. this
snippet:
> public static String derbyVMLevel()
> {
>     switch (JDK_ID)
>     {
>     case J2SE_14: return J2ME ? "J2ME - JDBC for CDC/FP 1.1" : "J2SE 1.4 - JDBC 3.0";
>     case J2SE_142: return "J2SE 1.4.2 - JDBC 3.0";
>     case J2SE_15: return "J2SE 5.0 - JDBC 3.0";
>     case J2SE_16: return "Java SE 6 - JDBC 4.0";
>     default: return "?-?";
>     }
> }
> This is exposed through our MBean implementation in org.apache.derby.jdbc.JDBC#getDriverLevel

--
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

        

Mime
View raw message