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 40F7E9E55 for ; Wed, 7 Dec 2011 01:25:01 +0000 (UTC) Received: (qmail 74522 invoked by uid 500); 7 Dec 2011 01:25:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74484 invoked by uid 500); 7 Dec 2011 01:25:01 -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 74476 invoked by uid 99); 7 Dec 2011 01:25:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 01:25:01 +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; Wed, 07 Dec 2011 01:25:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 05C44103AA0 for ; Wed, 7 Dec 2011 01:24:40 +0000 (UTC) Date: Wed, 7 Dec 2011 01:24:40 +0000 (UTC) From: "Dag H. Wanvik (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <746037774.47860.1323221080024.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1489778641.36235.1322868580040.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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 [ https://issues.apache.org/jira/browse/DERBY-5519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-5519: --------------------------------- Issue & fix info: Known fix (was: Patch Available,Known fix) Fix Version/s: 10.9.0.0 > 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