コード例 #1
0
ファイル: Array.java プロジェクト: naga-project/naga
 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];
 }
コード例 #2
0
ファイル: TeaVmPlatform.java プロジェクト: naga-project/naga
 public static void register() {
   Platform.register(new TeaVmPlatform());
 }