From derby-dev-return-92107-apmail-db-derby-dev-archive=db.apache.org@db.apache.org Mon Dec 5 22:45:05 2011 Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4771372D7 for ; Mon, 5 Dec 2011 22:45:05 +0000 (UTC) Received: (qmail 50862 invoked by uid 500); 5 Dec 2011 22:45:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 50835 invoked by uid 500); 5 Dec 2011 22:45:05 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 50828 invoked by uid 99); 5 Dec 2011 22:45:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 22:45:05 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 22:45:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9DF44C9130 for ; Mon, 5 Dec 2011 22:44:41 +0000 (UTC) Date: Mon, 5 Dec 2011 22:44:41 +0000 (UTC) From: "Knut Anders Hatlen (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <668358225.42952.1323125081648.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1489778641.36235.1322868580040.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5519) Update code in JVMInfo#derbyVMLevel to give correct results for Java 7 and provisionally for 8. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163124#comment-13163124 ] Knut Anders Hatlen commented on DERBY-5519: ------------------------------------------- It sounds reasonable to return the same JDBC version as DatabaseMetaData does. +1 to commit. > 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 > 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