< prev index next >

src/java.base/share/native/libjli/java.c

Print this page
rev 16214 : 8170663: Fix minor issues in corelib and servicabilty coding.
Contributed-by: David CARLIER <devnexen@gmail.com>, goetz.lindenmaier@sap.com
Reviewed-by: dsamersoff


1851                                         "printHelpMessage", "(Z)V"));
1852 
1853     NULL_CHECK(jprogname = (*env)->NewStringUTF(env, _program_name));
1854 
1855     /* Initialize the usage message with the usual preamble */
1856     (*env)->CallStaticVoidMethod(env, cls, initHelp, jprogname);
1857     CHECK_EXCEPTION_RETURN();
1858 
1859 
1860     /* Assemble the other variant part of the usage */
1861     for (i=1; i<knownVMsCount; i++) {
1862       if (knownVMs[i].flag == VM_KNOWN) {
1863         NULL_CHECK(vm1 =  (*env)->NewStringUTF(env, knownVMs[i].name));
1864         NULL_CHECK(vm2 =  (*env)->NewStringUTF(env, knownVMs[i].name+1));
1865         (*env)->CallStaticVoidMethod(env, cls, vmSelect, vm1, vm2);
1866         CHECK_EXCEPTION_RETURN();
1867       }
1868     }
1869     for (i=1; i<knownVMsCount; i++) {
1870       if (knownVMs[i].flag == VM_ALIASED_TO) {
1871         NULL_CHECK(vm1 =  (*env)->NewStringUTF(env, knownVMs[i].name));
1872         NULL_CHECK(vm2 =  (*env)->NewStringUTF(env, knownVMs[i].alias+1));
1873         (*env)->CallStaticVoidMethod(env, cls, vmSynonym, vm1, vm2);
1874         CHECK_EXCEPTION_RETURN();
1875       }
1876     }
1877 
1878     /* Complete the usage message and print to stderr*/
1879     (*env)->CallStaticVoidMethod(env, cls, printHelp, printTo);
1880   }
1881   return;
1882 }
1883 
1884 /*
1885  * Read the jvm.cfg file and fill the knownJVMs[] array.
1886  *
1887  * The functionality of the jvm.cfg file is subject to change without
1888  * notice and the mechanism will be removed in the future.
1889  *
1890  * The lexical structure of the jvm.cfg file is as follows:
1891  *




1851                                         "printHelpMessage", "(Z)V"));
1852 
1853     NULL_CHECK(jprogname = (*env)->NewStringUTF(env, _program_name));
1854 
1855     /* Initialize the usage message with the usual preamble */
1856     (*env)->CallStaticVoidMethod(env, cls, initHelp, jprogname);
1857     CHECK_EXCEPTION_RETURN();
1858 
1859 
1860     /* Assemble the other variant part of the usage */
1861     for (i=1; i<knownVMsCount; i++) {
1862       if (knownVMs[i].flag == VM_KNOWN) {
1863         NULL_CHECK(vm1 = (*env)->NewStringUTF(env, knownVMs[i].name));
1864         NULL_CHECK(vm2 = (*env)->NewStringUTF(env, knownVMs[i].name+1));
1865         (*env)->CallStaticVoidMethod(env, cls, vmSelect, vm1, vm2);
1866         CHECK_EXCEPTION_RETURN();
1867       }
1868     }
1869     for (i=1; i<knownVMsCount; i++) {
1870       if (knownVMs[i].flag == VM_ALIASED_TO) {
1871         NULL_CHECK(vm1 = (*env)->NewStringUTF(env, knownVMs[i].alias));
1872         NULL_CHECK(vm2 = (*env)->NewStringUTF(env, knownVMs[i].alias+1));
1873         (*env)->CallStaticVoidMethod(env, cls, vmSynonym, vm1, vm2);
1874         CHECK_EXCEPTION_RETURN();
1875       }
1876     }
1877 
1878     /* Complete the usage message and print to stderr*/
1879     (*env)->CallStaticVoidMethod(env, cls, printHelp, printTo);
1880   }
1881   return;
1882 }
1883 
1884 /*
1885  * Read the jvm.cfg file and fill the knownJVMs[] array.
1886  *
1887  * The functionality of the jvm.cfg file is subject to change without
1888  * notice and the mechanism will be removed in the future.
1889  *
1890  * The lexical structure of the jvm.cfg file is as follows:
1891  *


< prev index next >