This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch: gcc 2.96 compile fixes, file creation mode, ServerSocket bind cleanup


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);
    }
};

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]