public static Object newInstance(Class<?> componentType, int length) throws NegativeArraySizeException { if (componentType.equals(Object.class)) return new Object[length]; if (componentType.equals(QueryResultSet.class)) return new QueryResultSet[length]; Platform.log( "GWT super source Array.newInstance() has no case for type " + componentType + ", so new Object[] is returned but this may cause a ClassCastException."); return new Object[length]; }
public static void register() { Platform.register(new TeaVmPlatform()); }