Tom Tromey <[EMAIL PROTECTED]> writes:

> Today I looked at merging Boolean and Integer with libgcj.
> 
> There's one patch I'd like to make but I don't know how valid it is.
> It is appended.
> 

Take a look at Double.java.

Perhaps something like this?

public static final Class TYPE;

static
{
  if (Configuration.INIT_LOAD_LIBRARY)
    {
      System.loadLibrary("javalang");
      initIDs();
      TYPE = VMClassLoader.getPrimitiveClass("double");
    }
  else if (Configuration.GCJ)
    {
      TYPE = boolean.class;
    }
}

Seems like it would work... and it should compile too.

-- 
Brian Jones <[EMAIL PROTECTED]>

_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to