Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 96170 invoked from network); 26 Sep 2006 08:07:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 08:07:51 -0000 Received: (qmail 82787 invoked by uid 500); 26 Sep 2006 08:07:45 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 82729 invoked by uid 500); 26 Sep 2006 08:07:45 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 82717 invoked by uid 99); 26 Sep 2006 08:07:45 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 01:07:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:57174] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id A7/30-06274-FCFD8154 for ; Tue, 26 Sep 2006 01:07:43 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8FB1171428E for ; Tue, 26 Sep 2006 08:03:56 +0000 (GMT) Message-ID: <485754.1159257836586.JavaMail.jira@brutus> Date: Tue, 26 Sep 2006 01:03:56 -0700 (PDT) From: "Christian Gosch (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Created: (SANDBOX-175) Support for JRE/JDK 1.3 by implementation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Support for JRE/JDK 1.3 by implementation ----------------------------------------- Key: SANDBOX-175 URL: http://issues.apache.org/jira/browse/SANDBOX-175 Project: Commons Sandbox Issue Type: Improvement Components: Compress Environment: IBM JDK 1.3.1 SR9 for IBM WebSphere Application Server 5.0.2 Reporter: Christian Gosch Priority: Minor Currently "commons compress" does not support JDK/JRE 1.3, but requires JDK/JRE 1.4 to compile and run. Since there are still productive environments in real world which do not support JRE 1.4 or newer (like the mentioned IBM WAS 5.0.2) and java.util.zip.* has major known bugs in filename handling (see below), "commons compress" is a reasonable alternative and should be "more compatible". For problems in handling non-ASCII entry names in java.util.zip.*, see: http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4244499 http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4820807 For JDK / JRE 1.3 compatibility, only a few things must be fixed: (1) Set compiler version compatibility version to 1.3 instead of 1.4. This will result in class files with version identifier "47.0" instead of "48.0". This may be IDE specific in some cases anyway. (2) Remove "this.initCause(e);" in some non-default Exception constructors (or leave them completely blank) (3) Replace use of "String.split(String)" by JDK 1.3 API in PackableObject.identifyByHeader(File, List). Here is how it looks like: String name = file.getName(); String extension = null; // String[] s = name.split("\\."); // if(s.length > 1) { // extension = s[ s.length - 1]; // } // code above is not JDK 1.3 compliant but requires JDK 1.4. // Here is the 1.3 compliant implementation: int i = name.lastIndexOf("."); if (i > -1) { extension = name.substring(i + 1); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org