emul/src/main/java/java/lang/Integer.java
changeset 114 a0505844750a
parent 104 1376481f15e7
child 179 469199c2994a
     1.1 --- a/emul/src/main/java/java/lang/Integer.java	Tue Oct 16 11:55:56 2012 +0200
     1.2 +++ b/emul/src/main/java/java/lang/Integer.java	Tue Oct 16 18:04:11 2012 +0200
     1.3 @@ -25,6 +25,8 @@
     1.4  
     1.5  package java.lang;
     1.6  
     1.7 +import org.apidesign.bck2brwsr.core.JavaScriptBody;
     1.8 +
     1.9  /**
    1.10   * The {@code Integer} class wraps a value of the primitive type
    1.11   * {@code int} in an object. An object of type {@code Integer}
    1.12 @@ -439,6 +441,7 @@
    1.13       * @exception  NumberFormatException if the {@code String}
    1.14       *             does not contain a parsable {@code int}.
    1.15       */
    1.16 +    @JavaScriptBody(args={"s", "radix"}, body="return parseInt(s,radix);")
    1.17      public static int parseInt(String s, int radix)
    1.18                  throws NumberFormatException
    1.19      {