History

Added missing internal classes and methods

Dmitry Kabak (userdima committed 13 years ago

Commit 77d6f8d1 parent be0f4595 files · +49 −18Browse files

Showing the changes to java (5 of 5 files). Show all

Unified · Split

5 files
  1. java/pkg/java/io/FileDescriptor.java +3 −3
  2. java/pkg/sun/misc/VM_L.b +30 −0
  3. java/pkg/sun/misc/VM_L.m +7 −0
  4. java/pkg/sun/misc/Version.class +0 −0
  5. java/pkg/sun/misc/Version.java +10 −16
java/pkg/java/io/FileDescriptor.java+3−3
@@ -48,11 +48,11 @@ package java.io; · 47 unmodified lines
48 */48 */
49public final class FileDescriptor {49public final class FileDescriptor {
50 50
51 public static FileDescriptor in = new FileDescriptor();51 public static FileDescriptor in = new FileDescriptor();
52 52
53 public static FileDescriptor out = new FileDescriptor();53 public static FileDescriptor out = new FileDescriptor();
54 54
55 public static FileDescriptor err = new FileDescriptor();55 public static FileDescriptor err = new FileDescriptor();
56 56
57 static {57 static {
58 in = initSystemFD(in, 0);58 in = initSystemFD(in, 0);
java/pkg/sun/misc/VM_L.b+30−0
@@ -0,0 +1,30 @@
1implement VM_L;
2
3# javal v1.2 generated file: edit with care
4
5include "jni.m";
6 jni : JNI;
7 ClassModule,
8 JObject: import jni;
9
10#>> extra pre includes here
11
12#<<
13
14include "VM_L.m";
15
16#>> extra post includes here
17#<<
18
19init( jni_p : JNI )
20{
21 # save java native inteface mod instance
22 jni = jni_p;
23 #>>extra initialization here
24 #<<
25}
26
27initialize_V()
28{#>>
29 # Just a no-op, we have nothing to initialize currently
30}#<<
java/pkg/sun/misc/VM_L.m+7−0
@@ -0,0 +1,7 @@
1# javal v1.2 generated file: edit with care
2
3VM_L : module
4{
5 init : fn( jni_p : JNI );
6 initialize_V : fn( );
7};
java/pkg/sun/misc/Version.class+0−0

Binary file not shown.

java/pkg/sun/misc/Version.javarenamed from java/pkg/sun/misc/Version.java.template+10−16
@@ -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 state106 // 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: ***