Showing the changes to java/pkg/sun (4 of 5 files). Show all
Unified · Split
| @@ -0,0 +1,30 @@ | |||
| 1 | implement VM_L; | ||
| 2 | |||
| 3 | # javal v1.2 generated file: edit with care | ||
| 4 | |||
| 5 | include "jni.m"; | ||
| 6 | jni : JNI; | ||
| 7 | ClassModule, | ||
| 8 | JObject: import jni; | ||
| 9 | |||
| 10 | #>> extra pre includes here | ||
| 11 | |||
| 12 | #<< | ||
| 13 | |||
| 14 | include "VM_L.m"; | ||
| 15 | |||
| 16 | #>> extra post includes here | ||
| 17 | #<< | ||
| 18 | |||
| 19 | init( jni_p : JNI ) | ||
| 20 | { | ||
| 21 | # save java native inteface mod instance | ||
| 22 | jni = jni_p; | ||
| 23 | #>>extra initialization here | ||
| 24 | #<< | ||
| 25 | } | ||
| 26 | |||
| 27 | initialize_V() | ||
| 28 | {#>> | ||
| 29 | # Just a no-op, we have nothing to initialize currently | ||
| 30 | }#<< | ||
| @@ -0,0 +1,7 @@ | |||
| 1 | # javal v1.2 generated file: edit with care | ||
| 2 | |||
| 3 | VM_L : module | ||
| 4 | { | ||
| 5 | init : fn( jni_p : JNI ); | ||
| 6 | initialize_V : fn( ); | ||
| 7 | }; | ||
Binary file not shown.
| @@ -36,7 +36,7 @@ public class Version { · 35 unmodified lines | |||
| 36 | "@@java_version@@"; | 36 | "@@java_version@@"; |
| 37 | 37 | ||
| 38 | private static final String java_runtime_name = | 38 | private static final String java_runtime_name = |
| 39 | "@@java_runtime_name@@"; | 39 | "@@java_runtime_name@@"; |
| 40 | 40 | ||
| 41 | private static final String java_runtime_version = | 41 | private static final String java_runtime_version = |
| 42 | "@@java_runtime_version@@"; | 42 | "@@java_runtime_version@@"; |
| @@ -90,23 +90,23 @@ public class Version { · 47 unmodified lines | |||
| 90 | boolean isHeadless = false; | 90 | boolean isHeadless = false; |
| 91 | 91 | ||
| 92 | /* Report that we're running headless if the property is true */ | 92 | /* Report that we're running headless if the property is true */ |
| 93 | String headless = System.getProperty("java.awt.headless"); | 93 | String headless = System.getProperty("java.awt.headless"); |
| 94 | if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) { | 94 | if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) { |
| 95 | isHeadless = true; | 95 | isHeadless = true; |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | /* First line: platform version. */ | 98 | /* First line: platform version. */ |
| 99 | ps.println(launcher_name + " version \"" + java_version + "\""); | 99 | ps.println(launcher_name + " version \"" + java_version + "\""); |
| 100 | 100 | ||
| 101 | /* Second line: runtime version (ie, libraries). */ | 101 | /* Second line: runtime version (ie, libraries). */ |
| 102 | 102 | ||
| 103 | ps.print(java_runtime_name + " (build " + java_runtime_version); | 103 | ps.print(java_runtime_name + " (build " + java_runtime_version); |
| 104 | 104 | ||
| 105 | if (java_runtime_name.indexOf("Embedded") != -1 && isHeadless) { | 105 | if (java_runtime_name.indexOf("Embedded") != -1 && isHeadless) { |
| 106 | // embedded builds report headless state | 106 | // embedded builds report headless state |
| 107 | ps.print(", headless"); | 107 | ps.print(", headless"); |
| 108 | } | 108 | } |
| 109 | ps.println(')'); | 109 | ps.println(')'); |
| 110 | 110 | ||
| 111 | /* Third line: JVM information. */ | 111 | /* Third line: JVM information. */ |
| 112 | String java_vm_name = System.getProperty("java.vm.name"); | 112 | String java_vm_name = System.getProperty("java.vm.name"); |
| @@ -333,9 +333,3 @@ public class Version { · 220 unmodified lines | |||
| 333 | private static native void getJdkVersionInfo(); | 333 | private static native void getJdkVersionInfo(); |
| 334 | 334 | ||
| 335 | } | 335 | } |
| 336 | |||
| 337 | // Help Emacs a little because this file doesn't end in .java. | ||
| 338 | // | ||
| 339 | // Local Variables: *** | ||
| 340 | // mode: java *** | ||
| 341 | // End: *** | ||