Imported Upstream version 4.2.0.179

Former-commit-id: 4610231f55806d2a05ed69e5ff3faa7336cc1479
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent aa7da660d6
commit c042cd0c52
7507 changed files with 90259 additions and 657307 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright (C) 2007-2013 Jeroen Frijters
Copyright (C) 2007-2015 Jeroen Frijters
Copyright (C) 2009 Volker Berlin (i-net software)
This software is provided 'as-is', without any express or implied
@@ -134,6 +134,13 @@ static class Java_java_util_zip_ClassStubZipEntry
}
}
static class Java_java_awt_Choice
{
public static void initIDs()
{
}
}
static class Java_sun_awt_image_ByteComponentRaster
{
public static void initIDs()
@@ -162,6 +169,19 @@ static class Java_sun_awt_image_ShortComponentRaster
}
}
static class Java_sun_awt_DefaultMouseInfoPeer
{
public static int fillPointWithCoords(object _this, object point)
{
throw new NotImplementedException();
}
public static bool isWindowUnderMouse(object _this, object w)
{
throw new NotImplementedException();
}
}
static class Java_sun_awt_FontDescriptor
{
public static void initIDs()
@@ -177,6 +197,45 @@ static class Java_sun_invoke_anon_AnonymousClassLoader
}
}
static class Java_sun_invoke_util_ValueConversions
{
// called from map.xml as a replacement for Class.isInstance() in sun.invoke.util.ValueConversions.castReference()
public static bool Class_isInstance(java.lang.Class clazz, object obj)
{
TypeWrapper tw = TypeWrapper.FromClass(clazz);
// handle the type system hole that is caused by arrays being both derived from cli.System.Array and directly from java.lang.Object
return tw.IsInstance(obj) || (tw == CoreClasses.cli.System.Object.Wrapper && obj is Array);
}
}
static class Java_sun_invoke_util_VerifyAccess
{
// called from map.xml as a replacement for Class.getClassLoader() in sun.invoke.util.VerifyAccess.isTypeVisible()
public static java.lang.ClassLoader Class_getClassLoader(java.lang.Class clazz)
{
TypeWrapper tw = TypeWrapper.FromClass(clazz);
if (ClassLoaderWrapper.GetBootstrapClassLoader().LoadClassByDottedNameFast(tw.Name) == tw)
{
// if a class is visible from the bootstrap class loader, we have to return null to allow the visibility check to succeed
return null;
}
return tw.GetClassLoader().GetJavaClassLoader();
}
}
static class Java_sun_net_PortConfig
{
public static int getLower0()
{
return 49152;
}
public static int getUpper0()
{
return 65535;
}
}
static class Java_sun_net_spi_DefaultProxySelector
{
public static bool init()
@@ -198,10 +257,10 @@ static class Java_sun_nio_fs_NetPath
#if FIRST_PASS
return null;
#else
path = java.io.FileSystem.getFileSystem().canonicalize(path);
path = java.io.DefaultFileSystem.getFileSystem().canonicalize(path);
if (VirtualFileSystem.IsVirtualFS(path))
{
if (VirtualFileSystem.CheckAccess(path, Java_java_io_Win32FileSystem.ACCESS_READ))
if (VirtualFileSystem.CheckAccess(path, Java_java_io_WinNTFileSystem.ACCESS_READ))
{
return path;
}
@@ -244,14 +303,6 @@ static class Java_sun_nio_fs_NetPath
}
}
static class Java_sun_rmi_server_MarshalInputStream
{
public static object latestUserDefinedLoader()
{
return Java_java_io_ObjectInputStream.latestUserDefinedLoader();
}
}
static class Java_sun_security_provider_NativeSeedGenerator
{
public static bool nativeGenerateSeed(byte[] result)
@@ -337,22 +388,6 @@ static class Java_com_sun_security_auth_module_NTSystem
}
}
static class Java_com_sun_security_auth_module_SolarisSystem
{
public static void getSolarisInfo(object thisObj)
{
throw new NotImplementedException();
}
}
static class Java_com_sun_security_auth_module_UnixSystem
{
public static void getUnixInfo(object thisObj)
{
throw new NotImplementedException();
}
}
static class Java_com_sun_media_sound_JDK13Services
{
public static string getDefaultProviderClassName(object deviceClass)