ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25589] New: - TarEntry constructor throws an exception on Linux
Date Wed, 17 Dec 2003 13:35:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25589>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25589

TarEntry constructor throws an exception on Linux

           Summary: TarEntry constructor throws an exception on Linux
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: vloukine@mail.ru


java.lang.StringIndexOutOfBoundsException: String index out of range: 
7                                                             
        at java.lang.String.substring
(String.java:1522)                                                              
               
        at org.apache.tools.tar.TarEntry.<init>(TarEntry.java:210)

This excpetion is thrown any time, because os.name property is "Linux" and it 
contains less than 7 characters.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message