Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 53329 invoked from network); 25 Jan 2006 20:28:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 20:28:34 -0000 Received: (qmail 11866 invoked by uid 500); 25 Jan 2006 20:28:27 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 11813 invoked by uid 500); 25 Jan 2006 20:28:26 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 11802 invoked by uid 500); 25 Jan 2006 20:28:26 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 11799 invoked by uid 99); 25 Jan 2006 20:28:26 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 12:28:26 -0800 Received: by ajax.apache.org (Postfix, from userid 99) id 35D20E0; Wed, 25 Jan 2006 21:28:04 +0100 (CET) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 38389] New: - java.util.Arrays.Sort() crashes with AbstractMethodError when compiled using JDT, but works OK when compiled with ant Message-ID: X-Bugzilla-Reason: AssignedTo Date: Wed, 25 Jan 2006 21:28:04 +0100 (CET) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=38389 Summary: java.util.Arrays.Sort() crashes with AbstractMethodError when compiled using JDT, but works OK when compiled with ant Product: Tomcat 5 Version: 5.5.14 Platform: Other OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: Unknown AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: paul@2hv.nl I'm actually using Tomcat 5.5.15, but I could't select it in the list. But I've also got this problem with 5.5.12. I've got the following awfully simple JSP: --------------------------------------------- <%@ page import="java.util.Arrays,java.util.Comparator" %> <% MyClass[] list = new MyClass[2]; list[0] = new MyClass(); list[1] = new MyClass(); Arrays.sort(list,new Comparator() { public int compare(MyClass mo1, MyClass mo2) { return -1; // whatever } }); %> <%! public class MyClass { String text = "blah"; public String getText() { return text; } } %> --------------------------------------------- It compiles fine, but when executed it crashes like this: java.lang.AbstractMethodError: org.apache.jsp.error_jsp$1.compare (Ljava/lang/Object;Ljava/lang/Object;)I at java.util.Arrays.mergeSort(Arrays.java:1284) at java.util.Arrays.sort(Arrays.java:1223) at org.apache.jsp.error_jsp._jspService(org.apache.jsp.error_jsp:64) ...more... At first I thought it's a JDK error, but when I replace Tomcat's jasper- compiler-jdt.jar by an Ant-compiler jar, the code runs fine !! The above code also runs fine when I replace "MyClass" by "Object" in the Comparator definition, but this is ofcourse not what Java 5 is about :-) I've already updated to Suns JDK 1.5.0_06, but that didn't change anything. Any clues? Tanx! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org