Commit 5df33252 by Andrew Haley Committed by Andrew Haley

prims.cc (_Jv_Abort): fflush (stderr).

2007-01-31  Andrew Haley  <aph@redhat.com>

        * prims.cc (_Jv_Abort): fflush (stderr).
        * java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.

From-SVN: r121433
parent 7cf4c53d
2007-01-31 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_Abort): fflush (stderr).
* java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Abort.
2007-01-31 Tom Tromey <tromey@redhat.com>
* configure, Makefile.in: Rebuilt.
......
......@@ -208,6 +208,12 @@ _Jv_CheckABIVersion (unsigned long value)
// C++ ABI
if (version == GCJ_CXX_ABI_VERSION)
return;
// If we've loaded a library that uses the C++ ABI, and this
// library is an incompatible version, then we're dead. There's
// no point throwing an exception: that will crash.
JvFail ("gcj linkage error.\n"
"Incorrect library ABI version detected. Aborting.\n");
}
throw new ::java::lang::ClassFormatError
......
......@@ -458,6 +458,7 @@ _Jv_Abort (const char *, const char *, int, const char *message)
#else
fprintf (stderr, "libgcj failure: %s\n", message);
#endif
fflush (stderr);
abort ();
}
......
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