From issues-return-13723-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Thu May 27 21:40:06 2010 Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 39104 invoked from network); 27 May 2010 21:40:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 21:40:02 -0000 Received: (qmail 25899 invoked by uid 500); 27 May 2010 21:40:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 25798 invoked by uid 500); 27 May 2010 21:40:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 25790 invoked by uid 99); 27 May 2010 21:40:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 21:40:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 21:39:59 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4RLdbDi029958 for ; Thu, 27 May 2010 21:39:38 GMT Message-ID: <3668681.33471274996377757.JavaMail.jira@thor> Date: Thu, 27 May 2010 17:39:37 -0400 (EDT) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-624) SystemUtils.getJavaVersionAsFloat throws StringIndexOutOfBoundsException on Android runtime/Dalvik VM In-Reply-To: <17004022.32421274994578807.JavaMail.jira@thor> 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/LANG-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12872383#action_12872383 ] Gary Gregory commented on LANG-624: ----------------------------------- Travis, Thank you for the stack trace. Can you give me the value of {{SystemUtils.JAVA_VERSION_TRIMMED}} on your set up? Thank you, Gary > SystemUtils.getJavaVersionAsFloat throws StringIndexOutOfBoundsException on Android runtime/Dalvik VM > ----------------------------------------------------------------------------------------------------- > > Key: LANG-624 > URL: https://issues.apache.org/jira/browse/LANG-624 > Project: Commons Lang > Issue Type: Bug > Components: lang.* > Affects Versions: 2.5 > Reporter: Travis Truman > > Can be replicated in the Android emulator quite easily. > Stack trace: > {noformat} > at org.apache.commons.lang.builder.ToStringBuilder.(ToStringBuilder.java:98) > E/AndroidRuntime( 1681): ... 17 more > E/AndroidRuntime( 1681): Caused by: java.lang.ExceptionInInitializerError > E/AndroidRuntime( 1681): at org.apache.commons.lang.builder.ToStringStyle$MultiLineToStringStyle.(ToStringStyle.java:2276) > E/AndroidRuntime( 1681): at org.apache.commons.lang.builder.ToStringStyle.(ToStringStyle.java:94) > E/AndroidRuntime( 1681): ... 18 more > E/AndroidRuntime( 1681): Caused by: java.lang.StringIndexOutOfBoundsException > E/AndroidRuntime( 1681): at java.lang.String.substring(String.java:1571) > E/AndroidRuntime( 1681): at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1153) > E/AndroidRuntime( 1681): at org.apache.commons.lang.SystemUtils.(SystemUtils.java:818) > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.