From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20218 invoked by alias); 13 May 2002 21:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20163 invoked by uid 71); 13 May 2002 21:26:00 -0000 Resent-Date: 13 May 2002 21:26:00 -0000 Resent-Message-ID: <20020513212600.20162.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, green@redhat.com Received:(qmail 18438 invoked from network); 13 May 2002 21:19:16 -0000 Received: from unknown (HELO potter.sfbay.redhat.com) (205.180.83.107) by sources.redhat.com with SMTP; 13 May 2002 21:19:16 -0000 Received: from louie.sfbay.redhat.com (louie.sfbay.redhat.com [192.168.30.16]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g4DLHtv18981 for ; Mon, 13 May 2002 14:17:55 -0700 Received: (green@localhost) by louie.sfbay.redhat.com (8.11.6/8.6.4) id g4DLJFl28365; Mon, 13 May 2002 14:19:15 -0700 Message-Id:<200205132119.g4DLJFl28365@louie.sfbay.redhat.com> Date: Mon, 13 May 2002 14:26:00 -0000 From: green@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: libgcj/6652: new java.io.File("").getCanonicalFile() throws exception X-SW-Source: 2002-05/txt/msg00368.txt.bz2 List-Id: >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: