This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: patch: gcc 2.96 compile fixes, file creation mode, ServerSocket bind cleanup
- To: Bryce McKinlay <bryce@albatross.co.nz>
- Subject: Re: patch: gcc 2.96 compile fixes, file creation mode, ServerSocket bind cleanup
- From: Tom Tromey <tromey@cygnus.com>
- Date: 03 Aug 1999 14:13:08 -0600
- Cc: Java Patch List <java-patches@sourceware.cygnus.com> , Warren Levy <warrenl@cygnus.com>
- Reply-To: tromey@cygnus.com
Bryce> Note that libgcj currently doesn't compile with the latest gcc
Bryce> because of this.
That's ok for now, I guess.
Bryce, can you send a bug report to gcc-bugs@egcs.cygnus.com?
I'm having a hard time even getting the current egcs to build on my
box.
I've appended a piece of code I think should fail. Can you test it?
We ought to send them a self-contained test case if we can. So if my
test doesn't show the bug, could you maybe look to see how it can be
changed?
Tom
// Test java booleans and overloading
extern "Java"
{
typedef __java_boolean jboolean;
typedef __java_int jint;
typedef __java_short jshort;
namespace java
{
namespace lang
{
class Object
{
Object (jboolean x)
{
}
Object (jshort x)
{
}
};
class Class;
};
};
};
typedef class java::lang::Object* jobject;
typedef class java::lang::Class* jclass;
extern "C" jobject _Jv_AllocObject (jclass, jint);
class foo
{
java::lang::Object *x;
foo ()
{
x = new java::lang::Object (false);
}
};