public virtual global::System.Object newBundle(global::java.lang.String n1, global::java.util.Locale n2, global::java.lang.String n3, global::java.lang.ClassLoader n4, bool n5){
//XMLVM_BEGIN_WRAPPER[java.util.ResourceBundle$Control: java.util.ResourceBundle newBundle(java.lang.String, java.util.Locale, java.lang.String, java.lang.ClassLoader, boolean)]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r4_o = this;
    _r5_o = n1;
    _r6_o = n2;
    _r7_o = n3;
    _r8_o = n4;
    _r9.i = n5 ? 1 : 0;
    _r3_o = null;
    if (_r7_o == null) goto label5;
    if (_r8_o != null) goto label11;
    label5:;
    _r0_o = new global::java.lang.NullPointerException();
    ((global::java.lang.NullPointerException) _r0_o).@this();
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.NullPointerException) _r0_o);
    label11:;
    _r0_o = ((global::java.util.ResourceBundle_2Control) _r4_o).toBundleName((global::java.lang.String) _r5_o, (global::java.util.Locale) _r6_o);
    _r1_o = global::java.util.ResourceBundle_2Control._fJAVACLASS;
    if (_r1_o != _r7_o) goto label48;
    _r1_o = new global::java.util.ResourceBundle_2Control_21();
    ((global::java.util.ResourceBundle_2Control_21) _r1_o).@this((global::java.util.ResourceBundle_2Control) _r4_o, (global::java.lang.ClassLoader) _r8_o, (global::java.lang.String) _r0_o);
    _r4_o = global::java.security.AccessController.doPrivileged((global::java.security.PrivilegedAction) _r1_o);
    if (_r4_o != null) goto label34;
    _r0_o = _r3_o;
    label33:;
    return (global::java.util.ResourceBundle) _r0_o;
    label34:;
    try {
    _r4_o = ((global::java.lang.Class) _r4_o).newInstance();
    global::java.util.ResourceBundle.access_20((global::java.util.ResourceBundle) _r4_o, (global::java.util.Locale) _r6_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.NullPointerException) {
            _ex = ex;
            goto label45;
        }
        throw ex;
    } // end catch
    _r0_o = _r4_o;
    goto label33;
    label45:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r3_o;
    goto label33;
    label48:;
    _r1_o = global::java.util.ResourceBundle_2Control._fJAVAPROPERTIES;
    if (_r1_o != _r7_o) goto label122;
    // Value=properties
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)112)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 112)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 115))}));
    _r0_o = ((global::java.util.ResourceBundle_2Control) _r4_o).toResourceName((global::java.lang.String) _r0_o, (global::java.lang.String) _r1_o);
    if (_r9.i == 0) goto label101;
    try {
    _r0_o = ((global::java.lang.ClassLoader) _r8_o).getResource((global::java.lang.String) _r0_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.NullPointerException) {
            _ex = ex;
            goto label98;
        }
        throw ex;
    } // end catch
    label64:;
    if (_r0_o == null) goto label115;
    _r0_o = ((global::java.net.URL) _r0_o).openConnection();
    _r1.i = 0;
    ((global::java.net.URLConnection) _r0_o).setUseCaches(0!=_r1.i);
    _r0_o = ((global::java.net.URLConnection) _r0_o).getInputStream();
    label78:;
    if (_r0_o == null) goto label120;
    try {
    _r1_o = new global::java.util.PropertyResourceBundle();
    _r2_o = new global::java.io.InputStreamReader();
    ((global::java.io.InputStreamReader) _r2_o).@this((global::java.io.InputStream) _r0_o);
    ((global::java.util.PropertyResourceBundle) _r1_o).@this((global::java.io.Reader) _r2_o);
    global::java.util.ResourceBundle.access_20((global::java.util.ResourceBundle) _r1_o, (global::java.util.Locale) _r6_o);
    ((global::java.io.InputStream) _r0_o).close();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label117;
        }
        throw ex;
    } // end catch
    _r0_o = _r1_o;
    goto label33;
    label98:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r3_o;
    goto label64;
    label101:;
    try {
    _r1_o = new global::java.util.ResourceBundle_2Control_22();
    ((global::java.util.ResourceBundle_2Control_22) _r1_o).@this((global::java.util.ResourceBundle_2Control) _r4_o, (global::java.lang.ClassLoader) _r8_o, (global::java.lang.String) _r0_o);
    _r4_o = global::java.security.AccessController.doPrivileged((global::java.security.PrivilegedAction) _r1_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.NullPointerException) {
            _ex = ex;
            goto label114;
        }
        throw ex;
    } // end catch
    _r0_o = _r4_o;
    goto label78;
    label114:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    label115:;
    _r0_o = _r3_o;
    goto label78;
    label117:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r3_o;
    goto label33;
    label120:;
    _r0_o = _r3_o;
    goto label33;
    label122:;
    _r0_o = new global::java.lang.IllegalArgumentException();
    ((global::java.lang.IllegalArgumentException) _r0_o).@this();
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.IllegalArgumentException) _r0_o);
//XMLVM_END_WRAPPER[java.util.ResourceBundle$Control: java.util.ResourceBundle newBundle(java.lang.String, java.util.Locale, java.lang.String, java.lang.ClassLoader, boolean)]
}
Example #2
0
private static global::System.Object handleGetBundle(global::java.lang.String n1, global::java.lang.String n2, bool n3, global::java.lang.ClassLoader n4){
//XMLVM_BEGIN_WRAPPER[java.util.ResourceBundle: java.util.ResourceBundle handleGetBundle(java.lang.String, java.lang.String, boolean, java.lang.ClassLoader)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r8_o = null;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r8_o = n1;
    _r9_o = n2;
    _r10.i = n3 ? 1 : 0;
    _r11_o = n4;
    _r7.i = 1;
    _r6_o = null;
    _r0_o = new global::java.lang.StringBuilder();
    _r1_o = global::java.lang.String.valueOf((global::java.lang.Object) _r8_o);
    ((global::java.lang.StringBuilder) _r0_o).@this((global::java.lang.String) _r1_o);
    _r0_o = ((global::java.lang.StringBuilder) _r0_o).append((global::java.lang.String) _r9_o);
    _r1_o = ((global::java.lang.StringBuilder) _r0_o).toString();
    if (_r11_o == null) goto label61;
    _r2_o = _r11_o;
    label22:;
    _r3_o = global::java.util.ResourceBundle._fcache;
    global::System.Threading.Monitor.Enter(_r3_o);
    try {
    _r0_o = global::java.util.ResourceBundle._fcache;
    _r0_o = ((global::java.util.WeakHashMap) _r0_o).get((global::java.lang.Object) _r2_o);
    if (_r0_o != null) goto label228;
    _r0_o = new global::java.util.Hashtable();
    ((global::java.util.Hashtable) _r0_o).@this();
    _r4_o = global::java.util.ResourceBundle._fcache;
    ((global::java.util.WeakHashMap) _r4_o).put((global::java.lang.Object) _r2_o, (global::java.lang.Object) _r0_o);
    _r2_o = _r0_o;
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label65;
        }
        throw ex;
    } // end catch
    label46:;
    try {
    global::System.Threading.Monitor.Exit(_r3_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label65;
        }
        throw ex;
    } // end catch
    _r0_o = ((global::java.util.Hashtable) _r2_o).get((global::java.lang.Object) _r1_o);
    if (_r0_o == null) goto label89;
    _r1_o = global::java.util.ResourceBundle._fMISSINGBASE;
    if (_r0_o != _r1_o) goto label68;
    _r0_o = _r6_o;
    label60:;
    return (global::java.util.ResourceBundle) _r0_o;
    label61:;
    // Value=null
    _r0_o = new global::java.lang.String();
    ((global::java.lang.String)_r0_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)110)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 108)), unchecked((char) unchecked((uint) 108))}));
    _r2_o = _r0_o;
    goto label22;
    label65:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    try {
    global::System.Threading.Monitor.Exit(_r3_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label65;
        }
        throw ex;
    } // end catch
    throw new global::org.xmlvm._nExceptionAdapter((global::System.Object) _r0_o);
    label68:;
    _r1_o = global::java.util.ResourceBundle._fMISSING;
    if (_r0_o != _r1_o) goto label60;
    if (_r10.i != 0) goto label76;
    _r0_o = _r6_o;
    goto label60;
    label76:;
    _r0_o = global::java.util.ResourceBundle.strip((global::java.lang.String) _r9_o);
    if (_r0_o != null) goto label84;
    _r0_o = _r6_o;
    goto label60;
    label84:;
    _r0_o = global::java.util.ResourceBundle.handleGetBundle((global::java.lang.String) _r8_o, (global::java.lang.String) _r0_o, 0!=_r10.i, (global::java.lang.ClassLoader) _r11_o);
    goto label60;
    label89:;
    _r0.i = 1;
    try {
    _r0_o = global::java.lang.Class.forName((global::java.lang.String) _r1_o, 0!=_r0.i, (global::java.lang.ClassLoader) _r11_o);
    _r3_o = global::org.xmlvm._nTIB.getClass(typeof(global::java.util.ResourceBundle));
    _r3.i = ((global::java.lang.Class) _r3_o).isAssignableFrom((global::java.lang.Class) _r0_o) ? 1 : 0;
    if (_r3.i == 0) goto label140;
    _r0_o = ((global::java.lang.Class) _r0_o).newInstance();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.LinkageError) {
            _ex = ex;
            goto label136;
        }
        if (_java_exception is global::java.lang.Exception) {
            _ex = ex;
            goto label139;
        }
        throw ex;
    } // end catch
    _r3_o = _r0_o;
    label109:;
    if (_r3_o == null) goto label142;
    ((global::java.util.ResourceBundle) _r3_o).setLocale((global::java.lang.String) _r9_o);
    _r0_o = _r3_o;
    label115:;
    _r3_o = global::java.util.ResourceBundle.strip((global::java.lang.String) _r9_o);
    if (_r0_o == null) goto label189;
    if (_r3_o == null) goto label132;
    _r3_o = global::java.util.ResourceBundle.handleGetBundle((global::java.lang.String) _r8_o, (global::java.lang.String) _r3_o, 0!=_r7.i, (global::java.lang.ClassLoader) _r11_o);
    if (_r3_o == null) goto label132;
    ((global::java.util.ResourceBundle) _r0_o).setParent((global::java.util.ResourceBundle) _r3_o);
    label132:;
    ((global::java.util.Hashtable) _r2_o).put((global::java.lang.Object) _r1_o, (global::java.lang.Object) _r0_o);
    goto label60;
    label136:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r3_o = _r6_o;
    goto label109;
    label139:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    label140:;
    _r3_o = _r6_o;
    goto label109;
    label142:;
    _r0.i = 46;
    _r4.i = 47;
    _r0_o = ((global::java.lang.String) _r1_o).replace((char) _r0.i, (char) _r4.i);
    _r4_o = new global::java.util.ResourceBundle_22();
    ((global::java.util.ResourceBundle_22) _r4_o).@this((global::java.lang.ClassLoader) _r11_o, (global::java.lang.String) _r0_o);
    _r0_o = global::java.security.AccessController.doPrivileged((global::java.security.PrivilegedAction) _r4_o);
    if (_r0_o == null) goto label226;
    try {
    _r4_o = new global::java.util.PropertyResourceBundle();
    _r5_o = new global::java.io.InputStreamReader();
    ((global::java.io.InputStreamReader) _r5_o).@this((global::java.io.InputStream) _r0_o);
    ((global::java.util.PropertyResourceBundle) _r4_o).@this((global::java.io.Reader) _r5_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label181;
        }
        throw ex;
    } // end catch
    try {
    ((global::java.io.InputStream) _r0_o).close();
    ((global::java.util.ResourceBundle) _r4_o).setLocale((global::java.lang.String) _r9_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label223;
        }
        throw ex;
    } // end catch
    _r0_o = _r4_o;
    goto label115;
    label181:;
    _r4_o = _ex.getJavaException();
    _ex = null;
    try {
    ((global::java.io.InputStream) _r0_o).close();
    throw new global::org.xmlvm._nExceptionAdapter((global::System.Object) _r4_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label186;
        }
        throw ex;
    } // end catch
    label186:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r3_o;
    goto label115;
    label189:;
    if (_r3_o == null) goto label210;
    if (_r10.i != 0) goto label199;
    _r0.i = ((global::java.lang.String) _r3_o).length();
    if (_r0.i <= 0) goto label210;
    label199:;
    _r0_o = global::java.util.ResourceBundle.handleGetBundle((global::java.lang.String) _r8_o, (global::java.lang.String) _r3_o, 0!=_r10.i, (global::java.lang.ClassLoader) _r11_o);
    if (_r0_o == null) goto label210;
    ((global::java.util.Hashtable) _r2_o).put((global::java.lang.Object) _r1_o, (global::java.lang.Object) _r0_o);
    goto label60;
    label210:;
    if (_r10.i == 0) goto label220;
    _r0_o = global::java.util.ResourceBundle._fMISSINGBASE;
    label214:;
    ((global::java.util.Hashtable) _r2_o).put((global::java.lang.Object) _r1_o, (global::java.lang.Object) _r0_o);
    _r0_o = _r6_o;
    goto label60;
    label220:;
    _r0_o = global::java.util.ResourceBundle._fMISSING;
    goto label214;
    label223:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r0_o = _r4_o;
    goto label115;
    label226:;
    _r0_o = _r3_o;
    goto label115;
    label228:;
    _r2_o = _r0_o;
    goto label46;
//XMLVM_END_WRAPPER[java.util.ResourceBundle: java.util.ResourceBundle handleGetBundle(java.lang.String, java.lang.String, boolean, java.lang.ClassLoader)]
}