You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Christian Gosch (JIRA)" <ji...@apache.org> on 2009/01/07 14:48:47 UTC

[jira] Commented: (SANDBOX-175) Support for JRE/JDK 1.3 by implementation

    [ https://issues.apache.org/jira/browse/SANDBOX-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661571#action_12661571 ] 

Christian Gosch commented on SANDBOX-175:
-----------------------------------------

// Automatische Abwesenheitsnotiz //
Am Montag, dem 12. Januar 2009, werde ich wieder im Buero sein. Ihre Mail wird nicht weitergeleitet. Ich werde Ihre Anfrage beantworten, sobald ich zurueck bin. In dringenden Faellen wenden Sie sich bitte an die Zentrale in Pforzheim:
Tel.: +49 (0)72 31 - 31 91 - 0
mailto:info@inovex.de

Für dringende jNet-Anfragen verwenden Sie jnet "at" inovex.de.

// Out of Office AutoReply //
I will be back on Monday, January 12, 2009. Your message will not be forwarded. I will be happy to take care of your request when I return. In a case of urgency please contact our head office (Pforzheim):
Tel.: +49 (0)72 31 - 31 91 - 0
mailto:info@inovex.de

For urgent jNet issues use jnet "at" inovex.de.

Schoene Gruesse / Best regards

--
Dipl.-Inform. Christian Gosch
Systems Development
inovex GmbH
Karlsruher Strasse 71
D-75179 Pforzheim
Tel: 07231 3191-85
Fax: 07231 3191-91
c.gosch@inovex.de
www.inovex.de

Sitz der Gesellschaft: Pforzheim
AG Mannheim, HRB 502126
Geschäftsführer: Stephan Müller


> Support for JRE/JDK 1.3 by implementation
> -----------------------------------------
>
>                 Key: SANDBOX-175
>                 URL: https://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
>            Assignee: Torsten Curdt
>            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.
-
You can reply to this email to add a comment to the issue online.