public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/4481: java.io.File.getParent not working properly
@ 2001-10-08 13:44 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2001-10-08 13:44 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, java-prs, larocca, nobody, tromey
Synopsis: java.io.File.getParent not working properly
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Mon Oct 8 13:44:20 2001
Responsible-Changed-Why:
I'm handling it.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Mon Oct 8 13:44:20 2001
State-Changed-Why:
I checked in a fix for this, so I am closing the PR.
Thanks.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4481&database=gcc
^ permalink raw reply [flat|nested] 2+ messages in thread
* libgcj/4481: java.io.File.getParent not working properly
@ 2001-10-05 7:56 larocca
0 siblings, 0 replies; 2+ messages in thread
From: larocca @ 2001-10-05 7:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 4481
>Category: libgcj
>Synopsis: java.io.File.getParent not working properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 05 07:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: larocca@spinnakernet.com
>Release: gcj 3.1
>Organization:
>Environment:
Linux redhat 6.1
>Description:
The gcj 3.1 java.io.File.getParent() does not work as does the jdk1.3.1 version.
It strips the leading '/' in single path components like '/foo'
/local/src/misc>cat FileTest.java
import java.io.*;
class FileTest {
public static void main(String args[]) {
File path = new File("/foo");
System.out.println("parent=" + path.getParent());
}
}
/local/src/misc>gcj -g --main=FileTest FileTest.java -o FileTest
/local/src/misc>
/local/src/misc>FileTest
parent=
/local/src/misc>
/local/src/misc>javac FileTest.java
/local/src/misc>
/local/src/misc>java FileTest
parent=/
>How-To-Repeat:
Simple test case provided in description.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-08 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-08 13:44 libgcj/4481: java.io.File.getParent not working properly tromey
-- strict thread matches above, loose matches on Subject: below --
2001-10-05 7:56 larocca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).