Skip to content

Commit b1cb998

Browse files
committed
Regenerated Array GWT super source with the latest version of the build tool
1 parent 305a6d5 commit b1cb998

File tree

1 file changed

+12
-0
lines changed
  • webfx-demo-particles-application-gwt/src/main/resources/super/java/lang/reflect

1 file changed

+12
-0
lines changed

webfx-demo-particles-application-gwt/src/main/resources/super/java/lang/reflect/Array.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,16 @@ public static Object newInstance(Class<?> componentType, int length) throws Nega
1515
}
1616
}
1717

18+
public static int getLength(Object array) {
19+
return asArray(array).length;
20+
}
21+
22+
// From com.google.gwt.lang.Array (gwt-dev:2.9.0)
23+
/**
24+
* Use JSNI to effect a castless type change.
25+
*/
26+
private static native <T> T[] asArray(Object array) /*-{
27+
return array;
28+
}-*/;
29+
1830
}

0 commit comments

Comments
 (0)