public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: green@redhat.com
To: gcc-gnats@gcc.gnu.org
Subject: libgcj/6652: new java.io.File("").getCanonicalFile() throws exception
Date: Mon, 13 May 2002 14:26:00 -0000	[thread overview]
Message-ID: <200205132119.g4DLJFl28365@louie.sfbay.redhat.com> (raw)


>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:


             reply	other threads:[~2002-05-13 21:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13 14:26 green [this message]
2002-06-12 10:01 tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200205132119.g4DLJFl28365@louie.sfbay.redhat.com \
    --to=green@redhat.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).