Commit 62d73fa8 by Tom Tromey Committed by Tom Tromey

natFileDescriptorPosix.cc (open): Change error message formatting.

	* java/io/natFileDescriptorPosix.cc (open): Change error message
	formatting.  From David Brownell.

From-SVN: r43564
parent c6b3e551
2001-06-25 Tom Tromey <tromey@redhat.com>
* java/io/natFileDescriptorPosix.cc (open): Change error message
formatting. From David Brownell.
2001-06-21 Tom Tromey <tromey@redhat.com> 2001-06-21 Tom Tromey <tromey@redhat.com>
* include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL. * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
......
...@@ -109,7 +109,9 @@ java::io::FileDescriptor::open (jstring path, jint jflags) ...@@ -109,7 +109,9 @@ java::io::FileDescriptor::open (jstring path, jint jflags)
if (fd == -1) if (fd == -1)
{ {
char msg[MAXPATHLEN + 200]; 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)); throw new FileNotFoundException (JvNewStringLatin1 (msg));
} }
return fd; return fd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment