Merged gcj-eclipse branch to trunk.

From-SVN: r120621
This commit is contained in:
Tom Tromey 2007-01-09 19:58:05 +00:00
parent c648dedbde
commit 97b8365caf
17478 changed files with 606493 additions and 100744 deletions

View file

@ -47,14 +47,17 @@ final class VMURLConnection
{
public static final int LENGTH = 1024;
// private static native void init();
private static String guessContentTypeFromBuffer(byte[] b, int valid)
static
{
// FIXME - write real implementation
return null;
if (Configuration.INIT_LOAD_LIBRARY)
System.loadLibrary("javanet");
init();
}
private static native void init();
private static native String guessContentTypeFromBuffer(byte[] b, int valid);
/**
* This is called from URLConnection to guess the mime type of a
* stream. This method may return null to indicate that it could