public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libgcj/6652: new java.io.File("").getCanonicalFile() throws exception
@ 2002-06-12 10:01 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-06-12 10:01 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, green, java-prs, nobody, tromey

Synopsis: new java.io.File("").getCanonicalFile() throws exception

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Wed Jun 12 10:01:25 2002
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Wed Jun 12 10:01:25 2002
State-Changed-Why:
    I've checked in the fix.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6652


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libgcj/6652: new java.io.File("").getCanonicalFile() throws exception
@ 2002-05-13 14:26 green
  0 siblings, 0 replies; 2+ messages in thread
From: green @ 2002-05-13 14:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6652
>Category:       libgcj
>Synopsis:       new java.io.File("").getCanonicalFile() throws exception
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 13 14:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Anthony Green
>Release:        3.1 20020508 (prerelease)
>Organization:
>Environment:
System: Linux louie 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /louie/green/3.1/gcc/configure --prefix=/louie/green/3.1/i --enable-threads --enable-languages=c,c++,java : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured)  : (reconfigured) 
>Description:
	Sun's `new java.io.File("").getCanonicalFile()' returns a File for the
current directory.  libgcj currently throws an IOException.
>How-To-Repeat:
Try the following...

public class foo
{
	public static void main (String args[])
	{
		try {
			System.out.println (new java.io.File("").getCanonicalFile ());
		} catch (Exception e) {
			System.err.println (e);
		}
	}
}
>Fix:

This idiom is actually used in some free software.  The work-around on
posixy systems is to change "" to ".".


>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-12 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-12 10:01 libgcj/6652: new java.io.File("").getCanonicalFile() throws exception tromey
  -- strict thread matches above, loose matches on Subject: below --
2002-05-13 14:26 green

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).