Fixes build break. The String.__valueOf method was private, but it was called from our JRE emulation library's Integer and Long classes.
Review by: scottb (postmortem)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2147 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/super/com/google/gwt/emul/java/lang/String.java b/user/super/com/google/gwt/emul/java/lang/String.java
index 195df8d..e2535fc 100644
--- a/user/super/com/google/gwt/emul/java/lang/String.java
+++ b/user/super/com/google/gwt/emul/java/lang/String.java
@@ -130,6 +130,13 @@
return replaceStr;
}
+ static native String __valueOf(char x[], int start, int end) /*-{
+ // Trick: fromCharCode is a vararg method, so we can use apply() to pass the
+ // entire input in one shot.
+ x = x.slice(start, end);
+ return String.fromCharCode.apply(null, x);
+ }-*/;
+
/**
* @skip
*/
@@ -163,13 +170,6 @@
return String(me) == other;
}-*/;
- private static native String __valueOf(char x[], int start, int end) /*-{
- // Trick: fromCharCode is a vararg method, so we can use apply() to pass the
- // entire input in one shot.
- x = x.slice(start, end);
- return String.fromCharCode.apply(null, x);
- }-*/;
-
// CHECKSTYLE_ON
public String() {