diff options
Diffstat (limited to 'JCL/converterJclMin15/src/java')
46 files changed, 578 insertions, 0 deletions
diff --git a/JCL/converterJclMin15/src/java/io/InputStream.java b/JCL/converterJclMin15/src/java/io/InputStream.java new file mode 100644 index 0000000000..82511babed --- /dev/null +++ b/JCL/converterJclMin15/src/java/io/InputStream.java @@ -0,0 +1,5 @@ +package java.io; + +public class InputStream { + +} diff --git a/JCL/converterJclMin15/src/java/io/PrintStream.java b/JCL/converterJclMin15/src/java/io/PrintStream.java new file mode 100644 index 0000000000..19059381a2 --- /dev/null +++ b/JCL/converterJclMin15/src/java/io/PrintStream.java @@ -0,0 +1,8 @@ +package java.io; + +public class PrintStream { + public void println(String x) { + } + public void println(int x) { + } +} diff --git a/JCL/converterJclMin15/src/java/io/Serializable.java b/JCL/converterJclMin15/src/java/io/Serializable.java new file mode 100644 index 0000000000..edd882d7d5 --- /dev/null +++ b/JCL/converterJclMin15/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io;
+
+public interface Serializable {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/CharSequence.java b/JCL/converterJclMin15/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b9a0d9e417 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang;
+
+public interface CharSequence {
+ int length();
+}
diff --git a/JCL/converterJclMin15/src/java/lang/Class.java b/JCL/converterJclMin15/src/java/lang/Class.java new file mode 100644 index 0000000000..a7667b9834 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang;
+
+public class Class<T> {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin15/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..7765ed820a --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/ClassNotFoundException.java @@ -0,0 +1,20 @@ +package java.lang; + +public class ClassNotFoundException extends ReflectiveOperationException { + + public ClassNotFoundException() { + super((Throwable)null); // Disallow initCause + } + + public ClassNotFoundException(String s) { + super(s, null); // Disallow initCause + } + + public ClassNotFoundException(String s, Throwable ex) { + super(s, ex); // Disallow initCause + } + + public Throwable getException() { + return getCause(); + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin15/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..cb777dc7ba --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang;
+
+public class CloneNotSupportedException extends Exception {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/Comparable.java b/JCL/converterJclMin15/src/java/lang/Comparable.java new file mode 100644 index 0000000000..fbc6c8bac3 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang;
+
+public interface Comparable<T> {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/Deprecated.java b/JCL/converterJclMin15/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..6c73dedd0d --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Deprecated.java @@ -0,0 +1,6 @@ +package java.lang;
+import java.lang.annotation.*;
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Deprecated {
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/Enum.java b/JCL/converterJclMin15/src/java/lang/Enum.java new file mode 100644 index 0000000000..05c8d2728b --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Enum.java @@ -0,0 +1,14 @@ +package java.lang;
+
+public abstract class Enum<T extends Enum<T>> implements Comparable<T>, java.io.Serializable {
+ private static final long serialVersionUID = 2L;
+
+ protected Enum(String name, int ordinal) {
+ }
+ public final String name() {
+ return null;
+ }
+ public final int ordinal() {
+ return 0;
+ }
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/Error.java b/JCL/converterJclMin15/src/java/lang/Error.java new file mode 100644 index 0000000000..9a446d5324 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Error.java @@ -0,0 +1,16 @@ +package java.lang;
+
+public class Error extends Throwable {
+
+ public Error(java.lang.String s) {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Error(java.lang.String s, java.lang.Throwable cause) {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Error() {
+ // TODO Auto-generated constructor stub
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/Exception.java b/JCL/converterJclMin15/src/java/lang/Exception.java new file mode 100644 index 0000000000..0adef36baf --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Exception.java @@ -0,0 +1,19 @@ +package java.lang;
+
+public class Exception extends Throwable {
+ public Exception() {
+ super();
+ }
+
+ public Exception(String message) {
+ super(message);
+ }
+
+ public Exception(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public Exception(Throwable cause) {
+ super(cause);
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin15/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..814649067f --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang;
+
+public class IllegalAccessException extends RuntimeException {
+
+}
diff --git a/JCL/converterJclMin15/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin15/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..e173f133ab --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang;
+
+public class IllegalMonitorStateException extends RuntimeException {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/IncompatibleClassChangeError.java b/JCL/converterJclMin15/src/java/lang/IncompatibleClassChangeError.java new file mode 100644 index 0000000000..9552b875b8 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/IncompatibleClassChangeError.java @@ -0,0 +1,13 @@ + +package java.lang; +public +class IncompatibleClassChangeError extends LinkageError { + + public IncompatibleClassChangeError () { + super(); + } + + public IncompatibleClassChangeError(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin15/src/java/lang/InterruptedException.java b/JCL/converterJclMin15/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..e2e84ba0bc --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang;
+
+public class InterruptedException extends Exception {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/Iterable.java b/JCL/converterJclMin15/src/java/lang/Iterable.java new file mode 100644 index 0000000000..ab4b9d53f6 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Iterable.java @@ -0,0 +1,10 @@ +package java.lang; + +import java.util.Iterator; +import java.util.function.Consumer; + +public interface Iterable<T> { + Iterator<T> iterator(); + default void forEach(Consumer<? super T> action) { + } +} diff --git a/JCL/converterJclMin15/src/java/lang/LinkageError.java b/JCL/converterJclMin15/src/java/lang/LinkageError.java new file mode 100644 index 0000000000..199d39d98b --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/LinkageError.java @@ -0,0 +1,17 @@ +package java.lang; + +public +class LinkageError extends Error { + + public LinkageError() { + super(); + } + + public LinkageError(String s) { + super(s); + } + + public LinkageError(String s, Throwable cause) { + super(s, cause); + } +} diff --git a/JCL/converterJclMin15/src/java/lang/NoClassDefFoundError.java b/JCL/converterJclMin15/src/java/lang/NoClassDefFoundError.java new file mode 100644 index 0000000000..da0fe415c3 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/NoClassDefFoundError.java @@ -0,0 +1,13 @@ +package java.lang; + +public +class NoClassDefFoundError extends LinkageError { + + public NoClassDefFoundError() { + super(); + } + + public NoClassDefFoundError(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin15/src/java/lang/NoSuchFieldError.java b/JCL/converterJclMin15/src/java/lang/NoSuchFieldError.java new file mode 100644 index 0000000000..486e5339dc --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/NoSuchFieldError.java @@ -0,0 +1,13 @@ +package java.lang; + +public +class NoSuchFieldError extends IncompatibleClassChangeError { + + public NoSuchFieldError() { + super(); + } + + public NoSuchFieldError(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin15/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin15/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..b8c5bce7a5 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang;
+
+public class NoSuchMethodException extends RuntimeException {
+
+}
diff --git a/JCL/converterJclMin15/src/java/lang/NullPointerException.java b/JCL/converterJclMin15/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..5e4ffa680d --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/NullPointerException.java @@ -0,0 +1,11 @@ +package java.lang; +public +class NullPointerException extends RuntimeException { + public NullPointerException() { + super(); + } + + public NullPointerException(String s) { + super(s); + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/Object.java b/JCL/converterJclMin15/src/java/lang/Object.java new file mode 100644 index 0000000000..eb50899e5b --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Object.java @@ -0,0 +1,34 @@ +package java.lang;
+
+public class Object {
+
+public Object() {
+}
+protected Object clone() throws CloneNotSupportedException {
+ return null;
+}
+public boolean equals (Object obj) {
+ return false;
+}
+protected void finalize () throws Throwable {
+}
+public final Class<? extends Object> getClass() {
+ return null;
+}
+public int hashCode() {
+ return -1;
+}
+public final void notify() throws IllegalMonitorStateException {
+}
+public final void notifyAll() throws IllegalMonitorStateException {
+}
+public String toString () {
+ return null;
+}
+public final void wait () throws IllegalMonitorStateException, InterruptedException {
+}
+public final void wait (long millis) throws IllegalMonitorStateException, InterruptedException {
+}
+public final void wait (long millis, int nanos) throws IllegalMonitorStateException, InterruptedException {
+}
+}
diff --git a/JCL/converterJclMin15/src/java/lang/Override.java b/JCL/converterJclMin15/src/java/lang/Override.java new file mode 100644 index 0000000000..b94fa6e860 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Override.java @@ -0,0 +1,7 @@ +package java.lang; + +import java.lang.annotation.*; +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.SOURCE) +public @interface Override { +} diff --git a/JCL/converterJclMin15/src/java/lang/Record.java b/JCL/converterJclMin15/src/java/lang/Record.java new file mode 100644 index 0000000000..c9913367b9 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Record.java @@ -0,0 +1,9 @@ +package java.lang; +public abstract class Record { + @Override + public abstract boolean equals(Object obj); + @Override + public abstract int hashCode(); + @Override + public abstract String toString(); +} diff --git a/JCL/converterJclMin15/src/java/lang/ReflectiveOperationException.java b/JCL/converterJclMin15/src/java/lang/ReflectiveOperationException.java new file mode 100644 index 0000000000..0860c67905 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/ReflectiveOperationException.java @@ -0,0 +1,26 @@ + +package java.lang; + +public class ReflectiveOperationException extends Exception { + static final long serialVersionUID = 123456789L; + + public ReflectiveOperationException() { + super(); + } + + public ReflectiveOperationException(String message) { + super(message); + } + + public ReflectiveOperationException(String message, Throwable cause) { + super(message, cause); + } + + public ReflectiveOperationException(Throwable cause) { + super(cause); + } + + public java.lang.Throwable getCause() { + return getCause(); + } +} diff --git a/JCL/converterJclMin15/src/java/lang/RuntimeException.java b/JCL/converterJclMin15/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..80dc1dbd34 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/RuntimeException.java @@ -0,0 +1,12 @@ +package java.lang;
+
+public class RuntimeException extends Exception {
+
+ public RuntimeException(java.lang.String s) {
+ // TODO Auto-generated constructor stub
+ }
+
+ public RuntimeException() {
+ // TODO Auto-generated constructor stub
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/String.java b/JCL/converterJclMin15/src/java/lang/String.java new file mode 100644 index 0000000000..ba6bf08bf4 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/String.java @@ -0,0 +1,8 @@ +package java.lang;
+
+public class String implements CharSequence {
+ public int length() { return 0; }
+ public int codePointAt(int index) {
+ return 0;
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/System.java b/JCL/converterJclMin15/src/java/lang/System.java new file mode 100644 index 0000000000..bf56c93aa2 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/System.java @@ -0,0 +1,20 @@ +package java.lang; + +import java.io.InputStream; +import java.io.PrintStream; + +public final class System { + private static native void registerNatives(); + static { + registerNatives(); + } + + private System() { + } + + public static final InputStream in = null; + + public static final PrintStream out = null; + + +} diff --git a/JCL/converterJclMin15/src/java/lang/Throwable.java b/JCL/converterJclMin15/src/java/lang/Throwable.java new file mode 100644 index 0000000000..2488269beb --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/Throwable.java @@ -0,0 +1,20 @@ +package java.lang;
+
+public class Throwable {
+
+ public Throwable(java.lang.String message) {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Throwable() {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Throwable(java.lang.String message, Throwable cause) {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Throwable(Throwable cause) {
+ // TODO Auto-generated constructor stub
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin15/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..ba72aad15e --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation;
+public interface Annotation {
+
+}
diff --git a/JCL/converterJclMin15/src/java/lang/annotation/Documented.java b/JCL/converterJclMin15/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..34494fb5f3 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/Documented.java @@ -0,0 +1,12 @@ +package java.lang.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Documented {
+}
diff --git a/JCL/converterJclMin15/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin15/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..7b5b59578e --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/ElementType.java @@ -0,0 +1,48 @@ +package java.lang.annotation; + +public enum ElementType { + /** Class, interface (including annotation type), or enum declaration */ + TYPE, + + /** Field declaration (includes enum constants) */ + FIELD, + + /** Method declaration */ + METHOD, + + /** Formal parameter declaration */ + PARAMETER, + + /** Constructor declaration */ + CONSTRUCTOR, + + /** Local variable declaration */ + LOCAL_VARIABLE, + + /** Annotation type declaration */ + ANNOTATION_TYPE, + + /** Package declaration */ + PACKAGE, + + /** + * Type parameter declaration + * + * @since 1.8 + */ + TYPE_PARAMETER, + + /** + * Use of a type + * + * @since 1.8 + */ + TYPE_USE, + + /** + * Module declaration. + * + * @since 9 + */ + MODULE +} diff --git a/JCL/converterJclMin15/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin15/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..9753e0c412 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/Inherited.java @@ -0,0 +1,13 @@ +package java.lang.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Inherited {
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/annotation/Retention.java b/JCL/converterJclMin15/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..72f141758b --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/Retention.java @@ -0,0 +1,14 @@ +package java.lang.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Retention {
+ RetentionPolicy value();
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin15/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..b69fa7d654 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/RetentionPolicy.java @@ -0,0 +1,6 @@ +package java.lang.annotation;
+public enum RetentionPolicy {
+ CLASS,
+ SOURCE,
+ RUNTIME
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/annotation/Target.java b/JCL/converterJclMin15/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..239f6b1ee6 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/annotation/Target.java @@ -0,0 +1,14 @@ +package java.lang.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Target {
+ ElementType[] value();
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin15/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..789476586d --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,39 @@ +package java.lang.invoke;
+/*******************************************************************************
+ * Copyright (c) 2011 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import java.lang.invoke.MethodType;
+
+public abstract class MethodHandle {
+ @Target(METHOD)
+ @Retention(RUNTIME)
+ @interface PolymorphicSignature {
+ }
+
+ @PolymorphicSignature
+ public final native Object invoke(Object... args) throws Throwable;
+
+ @PolymorphicSignature
+ public final native Object invokeExact(Object... args) throws Throwable;
+
+ public native Object invokeWithArguments(Object... arguments)
+ throws Throwable;
+
+ public native boolean isVarargsCollector();
+
+ public native MethodHandle asType(MethodType newType);
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin15/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..49d9f1f87a --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,22 @@ +package java.lang.invoke;
+import java.lang.invoke.MethodType;
+
+public class MethodHandles {
+ public static final class Lookup {
+ public MethodHandle findVirtual(Class<?> refc, String name,
+ MethodType type) throws NoSuchMethodException,
+ IllegalAccessException {
+ return null;
+ }
+
+ public MethodHandle findStatic(Class<?> refc, String name,
+ MethodType type) throws NoSuchMethodException,
+ IllegalAccessException {
+ return null;
+ }
+ }
+
+ public static Lookup lookup() {
+ return null;
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin15/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..802a3f2c80 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/invoke/MethodType.java @@ -0,0 +1,17 @@ +package java.lang.invoke;
+
+
+public final class MethodType {
+ public static MethodType methodType(Class<?> rtype, Class<?> ptype0,
+ Class<?>... ptypes) {
+ return null;
+ }
+
+ public static MethodType methodType(Class<?> rtype) {
+ return null;
+ }
+
+ public static MethodType genericMethodType(int objectArgCount) {
+ return null;
+ }
+}
diff --git a/JCL/converterJclMin15/src/java/lang/runtime/ObjectMethods.java b/JCL/converterJclMin15/src/java/lang/runtime/ObjectMethods.java new file mode 100644 index 0000000000..7587fef8f0 --- /dev/null +++ b/JCL/converterJclMin15/src/java/lang/runtime/ObjectMethods.java @@ -0,0 +1,14 @@ +package java.lang.runtime; + +import java.lang.invoke.MethodHandle; +import java.lang.invoke.MethodHandles; +import java.lang.invoke.TypeDescriptor; + +public class ObjectMethods { + public static Object bootstrap(MethodHandles.Lookup lookup, String methodName, TypeDescriptor type, + Class<?> recordClass, + String names, + MethodHandle... getters) throws Throwable { + return null; + } +} diff --git a/JCL/converterJclMin15/src/java/util/Collection.java b/JCL/converterJclMin15/src/java/util/Collection.java new file mode 100644 index 0000000000..a40b2d29a3 --- /dev/null +++ b/JCL/converterJclMin15/src/java/util/Collection.java @@ -0,0 +1,9 @@ +package java.util;
+
+public interface Collection<T> extends Iterable<T> {
+ public Iterator<T> iterator();
+ public int size();
+ public T get(int index);
+ public boolean addAll(Collection<T> c);
+ public T[] toArray(T[] o);
+}
diff --git a/JCL/converterJclMin15/src/java/util/Iterator.java b/JCL/converterJclMin15/src/java/util/Iterator.java new file mode 100644 index 0000000000..f90ee762c2 --- /dev/null +++ b/JCL/converterJclMin15/src/java/util/Iterator.java @@ -0,0 +1,7 @@ +package java.util;
+
+public interface Iterator<E> {
+ boolean hasNext();
+ E next();
+ void remove();
+}
diff --git a/JCL/converterJclMin15/src/java/util/List.java b/JCL/converterJclMin15/src/java/util/List.java new file mode 100644 index 0000000000..7d19bdfb1b --- /dev/null +++ b/JCL/converterJclMin15/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util;
+
+public interface List<E> extends Collection<E> {
+}
diff --git a/JCL/converterJclMin15/src/java/util/Map.java b/JCL/converterJclMin15/src/java/util/Map.java new file mode 100644 index 0000000000..574a7f816a --- /dev/null +++ b/JCL/converterJclMin15/src/java/util/Map.java @@ -0,0 +1,5 @@ +package java.util;
+
+public interface Map<K,V> {
+
+}
\ No newline at end of file diff --git a/JCL/converterJclMin15/src/java/util/function/Consumer.java b/JCL/converterJclMin15/src/java/util/function/Consumer.java new file mode 100644 index 0000000000..dd5b3f408c --- /dev/null +++ b/JCL/converterJclMin15/src/java/util/function/Consumer.java @@ -0,0 +1,10 @@ +package java.util.function; + +public interface Consumer<T> { + + void accept(T t); + + default Consumer<T> andThen(Consumer<? super T> after) { + return null; + } +} |