Avoid use of Arrays.copyOf since that was added in JDK1.6. Patch by: jat Review by: rice (desk) git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6625 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/GwtVersion.java b/dev/core/src/com/google/gwt/dev/GwtVersion.java index 246ee49..a5fce30 100644 --- a/dev/core/src/com/google/gwt/dev/GwtVersion.java +++ b/dev/core/src/com/google/gwt/dev/GwtVersion.java
@@ -92,7 +92,10 @@ * @return a copy of the array of version components, always exactly length 3. */ public int[] getComponents() { - return Arrays.copyOf(components, COMPONENT_COUNT); + // Avoid Arrays.copyOf since it was added in JDK1.6 + int[] returnVal = new int[COMPONENT_COUNT]; + System.arraycopy(components, 0, returnVal, 0, COMPONENT_COUNT); + return returnVal; } /**