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/pkg (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
4848 */
4949 public final class FileDescriptor {
5050
51− public static FileDescriptor in = new FileDescriptor();
51+ public static FileDescriptor in = new FileDescriptor();
5252
53− public static FileDescriptor out = new FileDescriptor();
53+ public static FileDescriptor out = new FileDescriptor();
5454
55− public static FileDescriptor err = new FileDescriptor();
55+ public static FileDescriptor err = new FileDescriptor();
5656
5757 static {
5858 in = initSystemFD(in, 0);
java/pkg/sun/misc/VM_L.b+30−0
@@ -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+}#<<
java/pkg/sun/misc/VM_L.m+7−0
@@ -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+};
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
3636 "@@java_version@@";
3737
3838 private static final String java_runtime_name =
39− "@@java_runtime_name@@";
39+ "@@java_runtime_name@@";
4040
4141 private static final String java_runtime_version =
4242 "@@java_runtime_version@@";
@@ -90,23 +90,23 @@ public class Version { · 47 unmodified lines
9090 boolean isHeadless = false;
9191
9292 /* Report that we're running headless if the property is true */
93− String headless = System.getProperty("java.awt.headless");
94− if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) {
93+ String headless = System.getProperty("java.awt.headless");
94+ if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) {
9595 isHeadless = true;
96− }
96+ }
9797
9898 /* First line: platform version. */
9999 ps.println(launcher_name + " version \"" + java_version + "\"");
100100
101101 /* Second line: runtime version (ie, libraries). */
102102
103− ps.print(java_runtime_name + " (build " + java_runtime_version);
103+ ps.print(java_runtime_name + " (build " + java_runtime_version);
104104
105− if (java_runtime_name.indexOf("Embedded") != -1 && isHeadless) {
106− // embedded builds report headless state
107− ps.print(", headless");
108− }
109− ps.println(')');
105+ if (java_runtime_name.indexOf("Embedded") != -1 && isHeadless) {
106+ // embedded builds report headless state
107+ ps.print(", headless");
108+ }
109+ ps.println(')');
110110
111111 /* Third line: JVM information. */
112112 String java_vm_name = System.getProperty("java.vm.name");
@@ -333,9 +333,3 @@ public class Version { · 220 unmodified lines
333333 private static native void getJdkVersionInfo();
334334
335335 }
336−
337−// Help Emacs a little because this file doesn't end in .java.
338−//
339−// Local Variables: ***
340−// mode: java ***
341−// End: ***