From: Tom Tromey Date: Tue, 26 Jun 2001 03:27:57 +0000 (+0000) Subject: natFileDescriptorPosix.cc (open): Change error message formatting. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62d73fa83bbe229d4630844295c57211e05b5bf7;p=gcc.git natFileDescriptorPosix.cc (open): Change error message formatting. * java/io/natFileDescriptorPosix.cc (open): Change error message formatting. From David Brownell. From-SVN: r43564 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3b6404bf199..2ec86c53264 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2001-06-25 Tom Tromey + + * java/io/natFileDescriptorPosix.cc (open): Change error message + formatting. From David Brownell. + 2001-06-21 Tom Tromey * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL. diff --git a/libjava/java/io/natFileDescriptorPosix.cc b/libjava/java/io/natFileDescriptorPosix.cc index cb7a164d934..4e05cfe1df3 100644 --- a/libjava/java/io/natFileDescriptorPosix.cc +++ b/libjava/java/io/natFileDescriptorPosix.cc @@ -109,7 +109,9 @@ java::io::FileDescriptor::open (jstring path, jint jflags) if (fd == -1) { char msg[MAXPATHLEN + 200]; - sprintf (msg, "%s: %s", buf, strerror (errno)); + // We choose the formatting here for JDK compatibility, believe + // it or not. + sprintf (msg, "%s (%s)", buf, strerror (errno)); throw new FileNotFoundException (JvNewStringLatin1 (msg)); } return fd;