Ejemplo n.º 1
0
 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];
 }
Ejemplo n.º 2
0
 public static void register() {
   Platform.register(new TeaVmPlatform());
 }