diff options
Diffstat (limited to 'JCL')
705 files changed, 12693 insertions, 0 deletions
diff --git a/JCL/.gitignore b/JCL/.gitignore new file mode 100644 index 0000000000..9d41eb50ea --- /dev/null +++ b/JCL/.gitignore @@ -0,0 +1 @@ +*/bin/ diff --git a/JCL/converterJclMin/.classpath b/JCL/converterJclMin/.classpath new file mode 100644 index 0000000000..6ab8f66c5b --- /dev/null +++ b/JCL/converterJclMin/.classpath @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin/.project b/JCL/converterJclMin/.project new file mode 100644 index 0000000000..df6b4719b6 --- /dev/null +++ b/JCL/converterJclMin/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..cd734f4167 --- /dev/null +++ b/JCL/converterJclMin/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.4 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.3 diff --git a/JCL/converterJclMin/src/java/awt/List.java b/JCL/converterJclMin/src/java/awt/List.java new file mode 100644 index 0000000000..b2fd6f7c24 --- /dev/null +++ b/JCL/converterJclMin/src/java/awt/List.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.awt; + +public class List { + +} diff --git a/JCL/converterJclMin/src/java/awt/Point.java b/JCL/converterJclMin/src/java/awt/Point.java new file mode 100644 index 0000000000..132f09602b --- /dev/null +++ b/JCL/converterJclMin/src/java/awt/Point.java @@ -0,0 +1,7 @@ +package java.awt; + +public class Point { + + public int x; + public int y; +} diff --git a/JCL/converterJclMin/src/java/io/BufferedInputStream.java b/JCL/converterJclMin/src/java/io/BufferedInputStream.java new file mode 100644 index 0000000000..aa574a1930 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/BufferedInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedInputStream extends InputStream { + public BufferedInputStream(InputStream inputStream) { + } +} diff --git a/JCL/converterJclMin/src/java/io/BufferedOutputStream.java b/JCL/converterJclMin/src/java/io/BufferedOutputStream.java new file mode 100644 index 0000000000..3ab0e26fc5 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/BufferedOutputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedOutputStream extends OutputStream { + public BufferedOutputStream(FileOutputStream outputStream) { + } +} diff --git a/JCL/converterJclMin/src/java/io/BufferedWriter.java b/JCL/converterJclMin/src/java/io/BufferedWriter.java new file mode 100644 index 0000000000..61122c1b2f --- /dev/null +++ b/JCL/converterJclMin/src/java/io/BufferedWriter.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedWriter extends Writer { + + public BufferedWriter(Writer writer) { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin/src/java/io/ByteArrayInputStream.java b/JCL/converterJclMin/src/java/io/ByteArrayInputStream.java new file mode 100644 index 0000000000..7f095dcbcb --- /dev/null +++ b/JCL/converterJclMin/src/java/io/ByteArrayInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayInputStream extends InputStream { + public ByteArrayInputStream(byte[] b) { + } +} diff --git a/JCL/converterJclMin/src/java/io/ByteArrayOutputStream.java b/JCL/converterJclMin/src/java/io/ByteArrayOutputStream.java new file mode 100644 index 0000000000..8af40644cc --- /dev/null +++ b/JCL/converterJclMin/src/java/io/ByteArrayOutputStream.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayOutputStream extends OutputStream { + +} diff --git a/JCL/converterJclMin/src/java/io/File.java b/JCL/converterJclMin/src/java/io/File.java new file mode 100644 index 0000000000..e0465e47fa --- /dev/null +++ b/JCL/converterJclMin/src/java/io/File.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class File { + public static final char separatorChar = '\\'; + public static final String separator = "\\"; //$NON-NLS-1$ + + public File(String s) { + } + + public boolean exists() { + return false; + } + + public boolean isDirectory() { + return false; + } + + public String getAbsolutePath() { + return null; + } + + public boolean mkdirs() { + return false; + } + + public boolean mkdir() { + return false; + } + + public String getName() { + return null; + } + public long length() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/io/FileInputStream.java b/JCL/converterJclMin/src/java/io/FileInputStream.java new file mode 100644 index 0000000000..c51d1be33c --- /dev/null +++ b/JCL/converterJclMin/src/java/io/FileInputStream.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileInputStream extends InputStream { + + public FileInputStream(File f) { + } +} diff --git a/JCL/converterJclMin/src/java/io/FileOutputStream.java b/JCL/converterJclMin/src/java/io/FileOutputStream.java new file mode 100644 index 0000000000..c643bf9c41 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/FileOutputStream.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileOutputStream extends OutputStream { + public FileOutputStream(File f) { + } + public FileOutputStream(String s) { + } +} diff --git a/JCL/converterJclMin/src/java/io/FileWriter.java b/JCL/converterJclMin/src/java/io/FileWriter.java new file mode 100644 index 0000000000..667a188869 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/FileWriter.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileWriter extends Writer { + + public FileWriter(String s) { + } + public void flush() throws IOException { + } + + public void close() throws IOException { + } + +} diff --git a/JCL/converterJclMin/src/java/io/IOException.java b/JCL/converterJclMin/src/java/io/IOException.java new file mode 100644 index 0000000000..a73f64275e --- /dev/null +++ b/JCL/converterJclMin/src/java/io/IOException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class IOException extends Exception { + + public IOException(String s) { + super(s); + } + public IOException() { + } +} diff --git a/JCL/converterJclMin/src/java/io/InputStream.java b/JCL/converterJclMin/src/java/io/InputStream.java new file mode 100644 index 0000000000..8aa222e902 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/InputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InputStream { + public void close() throws IOException { + } + public int available() throws IOException { + return 0; + } + public int read(byte b[], int off, int len) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/io/InputStreamReader.java b/JCL/converterJclMin/src/java/io/InputStreamReader.java new file mode 100644 index 0000000000..a9012a34b8 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/InputStreamReader.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class InputStreamReader extends Reader { + public InputStreamReader(InputStream inputStream) { + } + public InputStreamReader(InputStream stream, String s) throws UnsupportedEncodingException { + } + public int read(char cbuf[], int offset, int length) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/io/InterruptedIOException.java b/JCL/converterJclMin/src/java/io/InterruptedIOException.java new file mode 100644 index 0000000000..c95111adfc --- /dev/null +++ b/JCL/converterJclMin/src/java/io/InterruptedIOException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InterruptedIOException extends Exception { + +} diff --git a/JCL/converterJclMin/src/java/io/OutputStream.java b/JCL/converterJclMin/src/java/io/OutputStream.java new file mode 100644 index 0000000000..8d9756265b --- /dev/null +++ b/JCL/converterJclMin/src/java/io/OutputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class OutputStream { + + public void write(byte b[]) throws IOException { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin/src/java/io/PrintStream.java b/JCL/converterJclMin/src/java/io/PrintStream.java new file mode 100644 index 0000000000..503f080425 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/PrintStream.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintStream { + + public void println() { + } + + public void println(String s) { + } + + public void println(int i) { + } + + public void println(Object o) { + } + + public void print(String s) { + } + + public void print(Object o) { + } + + public void print(int i) { + } +} diff --git a/JCL/converterJclMin/src/java/io/PrintWriter.java b/JCL/converterJclMin/src/java/io/PrintWriter.java new file mode 100644 index 0000000000..ec7e885e07 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/PrintWriter.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintWriter extends Writer { + public PrintWriter(ByteArrayOutputStream stream) { + } + public PrintWriter(Writer w) { + } + public void print(String s) { + } + public void print(char[] tab) { + } + public void flush() { + } + public void close() { + } + public void println(String s) { + } +} diff --git a/JCL/converterJclMin/src/java/io/Reader.java b/JCL/converterJclMin/src/java/io/Reader.java new file mode 100644 index 0000000000..bb74ec22fa --- /dev/null +++ b/JCL/converterJclMin/src/java/io/Reader.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class Reader { + +} diff --git a/JCL/converterJclMin/src/java/io/Serializable.java b/JCL/converterJclMin/src/java/io/Serializable.java new file mode 100644 index 0000000000..e33731bec8 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/Serializable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public interface Serializable { + +} diff --git a/JCL/converterJclMin/src/java/io/StringWriter.java b/JCL/converterJclMin/src/java/io/StringWriter.java new file mode 100644 index 0000000000..84631fdee0 --- /dev/null +++ b/JCL/converterJclMin/src/java/io/StringWriter.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class StringWriter extends Writer { + + public StringBuffer getBuffer() { + return null; + } + public void flush() { + } + public void close() { + } +} diff --git a/JCL/converterJclMin/src/java/io/UnsupportedEncodingException.java b/JCL/converterJclMin/src/java/io/UnsupportedEncodingException.java new file mode 100644 index 0000000000..916b5ccdcd --- /dev/null +++ b/JCL/converterJclMin/src/java/io/UnsupportedEncodingException.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class UnsupportedEncodingException extends IOException { + public UnsupportedEncodingException(String s) { + super(s); + } + public UnsupportedEncodingException() { + } +} diff --git a/JCL/converterJclMin/src/java/io/Writer.java b/JCL/converterJclMin/src/java/io/Writer.java new file mode 100644 index 0000000000..8a198ae50c --- /dev/null +++ b/JCL/converterJclMin/src/java/io/Writer.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public abstract class Writer { + public abstract void flush() throws IOException; + public abstract void close() throws IOException; + public void write(String str) throws IOException { + } +} diff --git a/JCL/converterJclMin/src/java/lang/ArithmeticException.java b/JCL/converterJclMin/src/java/lang/ArithmeticException.java new file mode 100644 index 0000000000..063baae8d8 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ArithmeticException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArithmeticException extends RuntimeException { + +} diff --git a/JCL/converterJclMin/src/java/lang/ArrayIndexOutOfBoundsException.java b/JCL/converterJclMin/src/java/lang/ArrayIndexOutOfBoundsException.java new file mode 100644 index 0000000000..af436866fe --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ArrayIndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { + +} diff --git a/JCL/converterJclMin/src/java/lang/AssertionError.java b/JCL/converterJclMin/src/java/lang/AssertionError.java new file mode 100644 index 0000000000..73b789252c --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/AssertionError.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class AssertionError extends Error { + + /** + * Constructor for AssertionError. + * @param s + */ + public AssertionError(String s) { + super(s); + } + + /** + * Constructor for AssertionError. + */ + public AssertionError() { + super(); + } + +} diff --git a/JCL/converterJclMin/src/java/lang/Boolean.java b/JCL/converterJclMin/src/java/lang/Boolean.java new file mode 100644 index 0000000000..198c9287b1 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Boolean.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Boolean { + public static final Boolean TRUE = new Boolean(true); + public static final Boolean FALSE = new Boolean(false); + public Boolean(boolean b) { + } +} diff --git a/JCL/converterJclMin/src/java/lang/Byte.java b/JCL/converterJclMin/src/java/lang/Byte.java new file mode 100644 index 0000000000..57fe180246 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Byte.java @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Byte extends Number { + public Byte(byte b) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/Character.java b/JCL/converterJclMin/src/java/lang/Character.java new file mode 100644 index 0000000000..337c148689 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Character.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Character { + public Character(char c) { + } + public static char toLowerCase(char c) { + return ' '; + } + + public static int getNumericValue(char c) { + return 0; + } + + public static int digit(char ch, int radix) { + return 0; + } + public static boolean isWhitespace(char c) { + return false; + } + public static boolean isJavaIdentifierStart(char c) { + return false; + } + public static boolean isJavaIdentifierPart(char c) { + return false; + } + public static boolean isDigit(char c) { + return false; + } +} diff --git a/JCL/converterJclMin/src/java/lang/Class.java b/JCL/converterJclMin/src/java/lang/Class.java new file mode 100644 index 0000000000..bfa8272d7d --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Class.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.io.InputStream; + +public class Class { + public String getName() { + return null; + } + public InputStream getResourceAsStream(String s) { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/ClassCastException.java b/JCL/converterJclMin/src/java/lang/ClassCastException.java new file mode 100644 index 0000000000..51bbbd2125 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ClassCastException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ClassCastException extends RuntimeException { + +} diff --git a/JCL/converterJclMin/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..79875fa4a9 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ClassNotFoundException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2020 GK Software SE and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package java.lang; +public class ClassNotFoundException extends ReflectiveOperationException { + public ClassNotFoundException() { super(); } + public ClassNotFoundException(String s) { super(s); } + public ClassNotFoundException(String s, Throwable t) { super(s, t);} + public Throwable getException() { return null; } +} diff --git a/JCL/converterJclMin/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..2074efbf9e --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin/src/java/lang/Cloneable.java b/JCL/converterJclMin/src/java/lang/Cloneable.java new file mode 100644 index 0000000000..bc1cb76200 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Cloneable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Cloneable { + +} diff --git a/JCL/converterJclMin/src/java/lang/Comparable.java b/JCL/converterJclMin/src/java/lang/Comparable.java new file mode 100644 index 0000000000..09be762d0f --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Comparable.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public interface Comparable { + public int compareTo(Object o); +} diff --git a/JCL/converterJclMin/src/java/lang/Double.java b/JCL/converterJclMin/src/java/lang/Double.java new file mode 100644 index 0000000000..fee7129f89 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Double.java @@ -0,0 +1,56 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Double extends Number { + public Double(double d) { + } + public static String toString(double d) { + return null; + } + public static Double valueOf(String s) throws NumberFormatException { + return null; + } + public static final double POSITIVE_INFINITY = 1.0 / 0.0; + public static boolean isNaN(double v) { + return false; + } + public double doubleValue() { + return 0.0; + } + public static final double MAX_VALUE = 1.7976931348623157e+308; + public static final double MIN_VALUE = 4.9e-324; + public static final double NaN = 0.0d / 0.0; + + public static native double longBitsToDouble(long bits); + public static native long doubleToLongBits(double value); + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public static double parseDouble(String s) { + return 0.0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/Error.java b/JCL/converterJclMin/src/java/lang/Error.java new file mode 100644 index 0000000000..fc4766d731 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Error.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Error extends Throwable { + + public Error(String s) { + super(s); + } + + public Error() { + } +} diff --git a/JCL/converterJclMin/src/java/lang/Exception.java b/JCL/converterJclMin/src/java/lang/Exception.java new file mode 100644 index 0000000000..f7969390d9 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Exception.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Exception extends Throwable { + public Exception() { + } + public Exception(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin/src/java/lang/ExceptionInInitializerError.java b/JCL/converterJclMin/src/java/lang/ExceptionInInitializerError.java new file mode 100644 index 0000000000..907abda50d --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ExceptionInInitializerError.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ExceptionInInitializerError extends Error { + public ExceptionInInitializerError(String s) { + } +} diff --git a/JCL/converterJclMin/src/java/lang/Float.java b/JCL/converterJclMin/src/java/lang/Float.java new file mode 100644 index 0000000000..ff66ee6f1f --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Float.java @@ -0,0 +1,53 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Float extends Number { + public static final float NaN = 0.0f / 0.0f; + public Float(float f) { + } + public static native float intBitsToFloat(int bits); + public static Float valueOf(String s) throws NumberFormatException { + return null; + } + public static final float POSITIVE_INFINITY = 1.0f / 0.0f; + public static boolean isNaN(float v) { + return false; + } + public float floatValue() { + return 0.0f; + } + public static final float MAX_VALUE = 3.4028235e+38f; + public static final float MIN_VALUE = 1.4e-45f; + public static native int floatToIntBits(float value); + public static String toString(float f) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..0e7fb8025f --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { + public IllegalMonitorStateException(String s) { + } + public IllegalMonitorStateException() { + } +} diff --git a/JCL/converterJclMin/src/java/lang/IndexOutOfBoundsException.java b/JCL/converterJclMin/src/java/lang/IndexOutOfBoundsException.java new file mode 100644 index 0000000000..7230956f64 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/IndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class IndexOutOfBoundsException extends RuntimeException { + +} diff --git a/JCL/converterJclMin/src/java/lang/Integer.java b/JCL/converterJclMin/src/java/lang/Integer.java new file mode 100644 index 0000000000..8d2027efa8 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Integer.java @@ -0,0 +1,54 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Integer extends Number { + public Integer(int i) { + } + public Integer(String s) { + } + public static final int MAX_VALUE= 2147483647; + public static final int MIN_VALUE= -2147483647; + + public static int parseInt(String s) throws NumberFormatException { + return 0; + } + public static String toHexString(int i) { + return null; + } + public static String toString(int i) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/InterruptedException.java b/JCL/converterJclMin/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..8bbd866439 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/InterruptedException.java @@ -0,0 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin/src/java/lang/Long.java b/JCL/converterJclMin/src/java/lang/Long.java new file mode 100644 index 0000000000..094fde461c --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Long.java @@ -0,0 +1,42 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Long extends Number { + public static final long MIN_VALUE = 0x8000000000000000L; + public static final long MAX_VALUE = 0x7fffffffffffffffL; + public Long(long l) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/Math.java b/JCL/converterJclMin/src/java/lang/Math.java new file mode 100644 index 0000000000..5183719463 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Math.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Math { + + public static int min(int a, int b) { + return 0; + } + public static int max(int a, int b) { + return 0; + } + public static int abs(int a) { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/NoSuchFieldError.java b/JCL/converterJclMin/src/java/lang/NoSuchFieldError.java new file mode 100644 index 0000000000..b6eefdc89e --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/NoSuchFieldError.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2020 GK Software SE and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + */ +package java.lang; +public class NoSuchFieldError extends IncompatibleClassChangeError { + public NoSuchFieldError() { super(); } + public NoSuchFieldError(String s) {super(s);} +} diff --git a/JCL/converterJclMin/src/java/lang/NullPointerException.java b/JCL/converterJclMin/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..6a76c3c57a --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/NullPointerException.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class NullPointerException extends RuntimeException { + + /** + * Constructor for NullPointerException. + * @param s + */ + public NullPointerException(String s) { + super(s); + } + + /** + * Constructor for NullPointerException. + */ + public NullPointerException() { + super(); + } + +} diff --git a/JCL/converterJclMin/src/java/lang/Number.java b/JCL/converterJclMin/src/java/lang/Number.java new file mode 100644 index 0000000000..602872f458 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Number.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public abstract class Number { + public abstract int intValue(); + public abstract long longValue(); + public abstract float floatValue(); + public abstract double doubleValue(); + public byte byteValue() { + return (byte) intValue(); + } + public short shortValue() { + return (short) intValue(); + } +} diff --git a/JCL/converterJclMin/src/java/lang/NumberFormatException.java b/JCL/converterJclMin/src/java/lang/NumberFormatException.java new file mode 100644 index 0000000000..db1be617e0 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/NumberFormatException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class NumberFormatException extends RuntimeException { + +} diff --git a/JCL/converterJclMin/src/java/lang/Object.java b/JCL/converterJclMin/src/java/lang/Object.java new file mode 100644 index 0000000000..7a501924c7 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Object.java @@ -0,0 +1,47 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +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 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/converterJclMin/src/java/lang/ReflectiveOperationException.java b/JCL/converterJclMin/src/java/lang/ReflectiveOperationException.java new file mode 100644 index 0000000000..cdbe130edd --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ReflectiveOperationException.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2020 GK Software SE and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package java.lang; + +public class ReflectiveOperationException extends Exception { + public ReflectiveOperationException() { + super(); + } + public ReflectiveOperationException(String s, Throwable t) { + this(s); + } + public ReflectiveOperationException(java.lang.String s) { + super(s); + } +} diff --git a/JCL/converterJclMin/src/java/lang/Runnable.java b/JCL/converterJclMin/src/java/lang/Runnable.java new file mode 100644 index 0000000000..d37f3130d1 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Runnable.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Runnable { + + void run(); +} diff --git a/JCL/converterJclMin/src/java/lang/RuntimeException.java b/JCL/converterJclMin/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..be85127b2e --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/RuntimeException.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class RuntimeException extends Exception { + public RuntimeException(String s) { + super(s); + } + public RuntimeException() { + } +} diff --git a/JCL/converterJclMin/src/java/lang/Short.java b/JCL/converterJclMin/src/java/lang/Short.java new file mode 100644 index 0000000000..e61f1368ad --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Short.java @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Short extends Number { + public Short(short s) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/lang/String.java b/JCL/converterJclMin/src/java/lang/String.java new file mode 100644 index 0000000000..219e3a0c5a --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/String.java @@ -0,0 +1,75 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class String { + public String() { + } + public String(char[] source) { + } + public String(String s) { + } + public String(char[] source, int i , int j) { + } + public int length() { + return 0; + } + public String replace(char oldChar, char newChar) { + return null; + } + + public int lastIndexOf(char c) { + return 0; + } + + public String substring(int i, int j) { + return null; + } + public String substring(int i) { + return null; + } + public char[] toCharArray() { + return null; + } + public int indexOf(String s) { + return 0; + } + public int indexOf(String s, int i) { + return 0; + } + public boolean endsWith(String s) { + return false; + } + public static String valueOf(int i) { + return null; + } + public static String valueOf(Object o) { + return null; + } + public static String valueOf(char[] tab) { + return null; + } + public static String valueOf(char[] tab, int i, int j) { + return null; + } + public int compareTo(String s) { + return 0; + } + public int indexOf(int ch, int fromIndex) { + return 0; + } + public char charAt(int i) { + return ' '; + } + public String trim() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/StringBuffer.java b/JCL/converterJclMin/src/java/lang/StringBuffer.java new file mode 100644 index 0000000000..f77dd695b0 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/StringBuffer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class StringBuffer { + public StringBuffer() { + } + public StringBuffer(String s) { + } + public StringBuffer(int i) { + } + public synchronized StringBuffer insert(int offset, String str) { + return this; + } + public synchronized StringBuffer append(String s) { + return this; + } + public synchronized StringBuffer append(StringBuffer buffer) { + return this; + } + public synchronized StringBuffer append(boolean b) { + return this; + } + public synchronized StringBuffer append(int i) { + return this; + } + public synchronized StringBuffer append(long l) { + return this; + } + public synchronized StringBuffer append(float f) { + return this; + } + public synchronized StringBuffer append(double d) { + return this; + } + public synchronized StringBuffer append(char[] o) { + return this; + } + public synchronized StringBuffer append(char[] o, int i, int j) { + return this; + } + public synchronized StringBuffer append(Object o) { + return this; + } + public int length() { + return 0; + } + public char[] getChars(int i, int j, char[] tab, int k) { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/System.java b/JCL/converterJclMin/src/java/lang/System.java new file mode 100644 index 0000000000..a13acd2404 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/System.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; + +public class System { + + public static PrintStream err; + public static PrintStream out; + + public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); + public static String getProperty(String s) { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/Throwable.java b/JCL/converterJclMin/src/java/lang/Throwable.java new file mode 100644 index 0000000000..42ebfd75a1 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Throwable.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; +import java.io.Writer; + +public class Throwable { + public Throwable(String s) { + } + public Throwable() { + } + + public void printStackTrace() { + } + + public void printStackTrace(Writer w) { + } + + public void printStackTrace(PrintStream w) { + } + public String getMessage() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/Void.java b/JCL/converterJclMin/src/java/lang/Void.java new file mode 100644 index 0000000000..72e9ca2bec --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/Void.java @@ -0,0 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Void {}
\ No newline at end of file diff --git a/JCL/converterJclMin/src/java/lang/ref/Reference.java b/JCL/converterJclMin/src/java/lang/ref/Reference.java new file mode 100644 index 0000000000..4d163a8bd1 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ref/Reference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class Reference { + public Object get() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/ref/ReferenceQueue.java b/JCL/converterJclMin/src/java/lang/ref/ReferenceQueue.java new file mode 100644 index 0000000000..9fe70bdafe --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ref/ReferenceQueue.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class ReferenceQueue { + public Reference poll() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/lang/ref/WeakReference.java b/JCL/converterJclMin/src/java/lang/ref/WeakReference.java new file mode 100644 index 0000000000..a45438ab53 --- /dev/null +++ b/JCL/converterJclMin/src/java/lang/ref/WeakReference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + + +public class WeakReference extends Reference { + public WeakReference(Object o, ReferenceQueue queue) { + } +} diff --git a/JCL/converterJclMin/src/java/net/MalformedURLException.java b/JCL/converterJclMin/src/java/net/MalformedURLException.java new file mode 100644 index 0000000000..887f4a7c4b --- /dev/null +++ b/JCL/converterJclMin/src/java/net/MalformedURLException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.net; + +public class MalformedURLException extends Exception { + +} diff --git a/JCL/converterJclMin/src/java/text/NumberFormat.java b/JCL/converterJclMin/src/java/text/NumberFormat.java new file mode 100644 index 0000000000..93a29b63cf --- /dev/null +++ b/JCL/converterJclMin/src/java/text/NumberFormat.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.text; + +public class NumberFormat { + + public final static NumberFormat getInstance() { + return null; + } + + public final String format (double d) { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/util/ArrayList.java b/JCL/converterJclMin/src/java/util/ArrayList.java new file mode 100644 index 0000000000..7e5e8b271f --- /dev/null +++ b/JCL/converterJclMin/src/java/util/ArrayList.java @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class ArrayList implements List { + + public ArrayList(int i) { + } + public ArrayList() { + } + public Object[] toArray(Object[] o) { + return null; + } + public int size() { + return 0; + } + public boolean add(Object o) { + return false; + } + public int indexOf(Object o) { + return 0; + } + public Object remove(int index) { + return null; + } + public Object get(int index) { + return null; + } + public boolean contains(Object o) { + return false; + } + public Iterator iterator() { + return null; + } + public boolean addAll(Collection c) { + return false; + } + public void set(int i, Object o) { + } +} diff --git a/JCL/converterJclMin/src/java/util/Arrays.java b/JCL/converterJclMin/src/java/util/Arrays.java new file mode 100644 index 0000000000..a28dfe05b0 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Arrays.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class Arrays { + public static void sort(Object[] tab) { + } +} diff --git a/JCL/converterJclMin/src/java/util/Collection.java b/JCL/converterJclMin/src/java/util/Collection.java new file mode 100644 index 0000000000..e9e15fa085 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Collection.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Collection { + public Iterator iterator(); + public int size(); + public Object get(int index); + public boolean addAll(Collection c); + public Object[] toArray(Object[] o); +} diff --git a/JCL/converterJclMin/src/java/util/Collections.java b/JCL/converterJclMin/src/java/util/Collections.java new file mode 100644 index 0000000000..cb82830e3c --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Collections.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class Collections { + public static void sort(List l) { + } +} diff --git a/JCL/converterJclMin/src/java/util/Enumeration.java b/JCL/converterJclMin/src/java/util/Enumeration.java new file mode 100644 index 0000000000..71ce4fb586 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Enumeration.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Enumeration { + + public boolean hasMoreElements(); + + public Object nextElement(); +} diff --git a/JCL/converterJclMin/src/java/util/HashMap.java b/JCL/converterJclMin/src/java/util/HashMap.java new file mode 100644 index 0000000000..543d56694d --- /dev/null +++ b/JCL/converterJclMin/src/java/util/HashMap.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class HashMap implements Map { + public HashMap(int i) { + } + public Object get(Object o) { + return null; + } + public boolean containsKey(Object o) { + return false; + } + public void put(Object o, Object v) { + } + public int size() { + return 0; + } + public Set keySet() { + return null; + } + public Collection values() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/util/Hashtable.java b/JCL/converterJclMin/src/java/util/Hashtable.java new file mode 100644 index 0000000000..ca5ad6c4d9 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Hashtable.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Hashtable implements Map { + public Hashtable(int i) { + } + public Object get(Object o) { + return null; + } + public boolean containsKey(Object o) { + return false; + } + public void put(Object o, Object v) { + } + public synchronized Enumeration elements() { + return null; + } + public int size() { + return 0; + } + public synchronized Enumeration keys() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/util/Iterator.java b/JCL/converterJclMin/src/java/util/Iterator.java new file mode 100644 index 0000000000..7d06d85047 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Iterator.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public interface Iterator { + public boolean hasNext(); + public Object next(); +} diff --git a/JCL/converterJclMin/src/java/util/List.java b/JCL/converterJclMin/src/java/util/List.java new file mode 100644 index 0000000000..467cb7badb --- /dev/null +++ b/JCL/converterJclMin/src/java/util/List.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface List extends Collection { + public boolean add(Object o); + public void set(int i, Object o); +} diff --git a/JCL/converterJclMin/src/java/util/Locale.java b/JCL/converterJclMin/src/java/util/Locale.java new file mode 100644 index 0000000000..d591b3946a --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Locale.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Locale { + public static Locale getDefault() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/util/Map.java b/JCL/converterJclMin/src/java/util/Map.java new file mode 100644 index 0000000000..c0ba203e8f --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Map.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Map { + + public Object get(Object o); + public boolean containsKey(Object o); + public void put(Object o, Object v); +} diff --git a/JCL/converterJclMin/src/java/util/MissingResourceException.java b/JCL/converterJclMin/src/java/util/MissingResourceException.java new file mode 100644 index 0000000000..f5f7c87e82 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/MissingResourceException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class MissingResourceException extends RuntimeException { + +} diff --git a/JCL/converterJclMin/src/java/util/NoSuchElementException.java b/JCL/converterJclMin/src/java/util/NoSuchElementException.java new file mode 100644 index 0000000000..a049d80d09 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/NoSuchElementException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class NoSuchElementException extends RuntimeException { + +} diff --git a/JCL/converterJclMin/src/java/util/ResourceBundle.java b/JCL/converterJclMin/src/java/util/ResourceBundle.java new file mode 100644 index 0000000000..027b99f365 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/ResourceBundle.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public abstract class ResourceBundle { + + public static final ResourceBundle getBundle(String baseName, Locale locale) { + return null; + } + + public final String getString(String key) { + return null; + } + public abstract Enumeration getKeys(); +} diff --git a/JCL/converterJclMin/src/java/util/Set.java b/JCL/converterJclMin/src/java/util/Set.java new file mode 100644 index 0000000000..ad017a2da2 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Set.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class Set { + public Iterator iterator() { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/util/StringTokenizer.java b/JCL/converterJclMin/src/java/util/StringTokenizer.java new file mode 100644 index 0000000000..86214d8596 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/StringTokenizer.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.util; + +public class StringTokenizer { + + public StringTokenizer(String toBeParsed, String delimiters) { + } + + public int countTokens() { + return 0; + } + + public String nextToken() { + return null; + } + + public boolean hasMoreTokens() { + return false; + } +} diff --git a/JCL/converterJclMin/src/java/util/Vector.java b/JCL/converterJclMin/src/java/util/Vector.java new file mode 100644 index 0000000000..e26e51f781 --- /dev/null +++ b/JCL/converterJclMin/src/java/util/Vector.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Vector { + + public Vector() { + } + + public Vector(int i) { + } + + public int size() { + return 0; + } + + public Object get(int i) { + return null; + } +} diff --git a/JCL/converterJclMin/src/java/util/zip/ZipEntry.java b/JCL/converterJclMin/src/java/util/zip/ZipEntry.java new file mode 100644 index 0000000000..7c82b06d8c --- /dev/null +++ b/JCL/converterJclMin/src/java/util/zip/ZipEntry.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + + +public class ZipEntry { + public long getSize() { + return 0; + } +} diff --git a/JCL/converterJclMin/src/java/util/zip/ZipFile.java b/JCL/converterJclMin/src/java/util/zip/ZipFile.java new file mode 100644 index 0000000000..56c853a2bc --- /dev/null +++ b/JCL/converterJclMin/src/java/util/zip/ZipFile.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + +import java.io.InputStream; + + +public class ZipFile { + public ZipEntry getEntry(String s) { + return null; + } + public InputStream getInputStream(ZipEntry zipEntry) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/.classpath b/JCL/converterJclMin1.5/.classpath new file mode 100644 index 0000000000..fb8a2f0102 --- /dev/null +++ b/JCL/converterJclMin1.5/.classpath @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin1.5/.project b/JCL/converterJclMin1.5/.project new file mode 100644 index 0000000000..058d2e0ee3 --- /dev/null +++ b/JCL/converterJclMin1.5/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin1.5</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin1.5/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin1.5/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..272e3b91d2 --- /dev/null +++ b/JCL/converterJclMin1.5/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/JCL/converterJclMin1.5/src/java/awt/List.java b/JCL/converterJclMin1.5/src/java/awt/List.java new file mode 100644 index 0000000000..b2fd6f7c24 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/awt/List.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.awt; + +public class List { + +} diff --git a/JCL/converterJclMin1.5/src/java/io/BufferedInputStream.java b/JCL/converterJclMin1.5/src/java/io/BufferedInputStream.java new file mode 100644 index 0000000000..aa574a1930 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/BufferedInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedInputStream extends InputStream { + public BufferedInputStream(InputStream inputStream) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/BufferedOutputStream.java b/JCL/converterJclMin1.5/src/java/io/BufferedOutputStream.java new file mode 100644 index 0000000000..3ab0e26fc5 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/BufferedOutputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedOutputStream extends OutputStream { + public BufferedOutputStream(FileOutputStream outputStream) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/BufferedWriter.java b/JCL/converterJclMin1.5/src/java/io/BufferedWriter.java new file mode 100644 index 0000000000..61122c1b2f --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/BufferedWriter.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedWriter extends Writer { + + public BufferedWriter(Writer writer) { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/ByteArrayInputStream.java b/JCL/converterJclMin1.5/src/java/io/ByteArrayInputStream.java new file mode 100644 index 0000000000..7f095dcbcb --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/ByteArrayInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayInputStream extends InputStream { + public ByteArrayInputStream(byte[] b) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/ByteArrayOutputStream.java b/JCL/converterJclMin1.5/src/java/io/ByteArrayOutputStream.java new file mode 100644 index 0000000000..8af40644cc --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/ByteArrayOutputStream.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayOutputStream extends OutputStream { + +} diff --git a/JCL/converterJclMin1.5/src/java/io/File.java b/JCL/converterJclMin1.5/src/java/io/File.java new file mode 100644 index 0000000000..e0465e47fa --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/File.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class File { + public static final char separatorChar = '\\'; + public static final String separator = "\\"; //$NON-NLS-1$ + + public File(String s) { + } + + public boolean exists() { + return false; + } + + public boolean isDirectory() { + return false; + } + + public String getAbsolutePath() { + return null; + } + + public boolean mkdirs() { + return false; + } + + public boolean mkdir() { + return false; + } + + public String getName() { + return null; + } + public long length() { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/FileInputStream.java b/JCL/converterJclMin1.5/src/java/io/FileInputStream.java new file mode 100644 index 0000000000..c51d1be33c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/FileInputStream.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileInputStream extends InputStream { + + public FileInputStream(File f) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/FileOutputStream.java b/JCL/converterJclMin1.5/src/java/io/FileOutputStream.java new file mode 100644 index 0000000000..c643bf9c41 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/FileOutputStream.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileOutputStream extends OutputStream { + public FileOutputStream(File f) { + } + public FileOutputStream(String s) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/FileWriter.java b/JCL/converterJclMin1.5/src/java/io/FileWriter.java new file mode 100644 index 0000000000..667a188869 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/FileWriter.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileWriter extends Writer { + + public FileWriter(String s) { + } + public void flush() throws IOException { + } + + public void close() throws IOException { + } + +} diff --git a/JCL/converterJclMin1.5/src/java/io/IOException.java b/JCL/converterJclMin1.5/src/java/io/IOException.java new file mode 100644 index 0000000000..a73f64275e --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/IOException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class IOException extends Exception { + + public IOException(String s) { + super(s); + } + public IOException() { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/InputStream.java b/JCL/converterJclMin1.5/src/java/io/InputStream.java new file mode 100644 index 0000000000..8aa222e902 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/InputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InputStream { + public void close() throws IOException { + } + public int available() throws IOException { + return 0; + } + public int read(byte b[], int off, int len) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/InputStreamReader.java b/JCL/converterJclMin1.5/src/java/io/InputStreamReader.java new file mode 100644 index 0000000000..a9012a34b8 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/InputStreamReader.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class InputStreamReader extends Reader { + public InputStreamReader(InputStream inputStream) { + } + public InputStreamReader(InputStream stream, String s) throws UnsupportedEncodingException { + } + public int read(char cbuf[], int offset, int length) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/InterruptedIOException.java b/JCL/converterJclMin1.5/src/java/io/InterruptedIOException.java new file mode 100644 index 0000000000..c95111adfc --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/InterruptedIOException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InterruptedIOException extends Exception { + +} diff --git a/JCL/converterJclMin1.5/src/java/io/OutputStream.java b/JCL/converterJclMin1.5/src/java/io/OutputStream.java new file mode 100644 index 0000000000..8d9756265b --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/OutputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class OutputStream { + + public void write(byte b[]) throws IOException { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/PrintStream.java b/JCL/converterJclMin1.5/src/java/io/PrintStream.java new file mode 100644 index 0000000000..503f080425 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/PrintStream.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintStream { + + public void println() { + } + + public void println(String s) { + } + + public void println(int i) { + } + + public void println(Object o) { + } + + public void print(String s) { + } + + public void print(Object o) { + } + + public void print(int i) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/PrintWriter.java b/JCL/converterJclMin1.5/src/java/io/PrintWriter.java new file mode 100644 index 0000000000..ec7e885e07 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/PrintWriter.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintWriter extends Writer { + public PrintWriter(ByteArrayOutputStream stream) { + } + public PrintWriter(Writer w) { + } + public void print(String s) { + } + public void print(char[] tab) { + } + public void flush() { + } + public void close() { + } + public void println(String s) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/Reader.java b/JCL/converterJclMin1.5/src/java/io/Reader.java new file mode 100644 index 0000000000..bb74ec22fa --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/Reader.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class Reader { + +} diff --git a/JCL/converterJclMin1.5/src/java/io/Serializable.java b/JCL/converterJclMin1.5/src/java/io/Serializable.java new file mode 100644 index 0000000000..e33731bec8 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/Serializable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public interface Serializable { + +} diff --git a/JCL/converterJclMin1.5/src/java/io/StringWriter.java b/JCL/converterJclMin1.5/src/java/io/StringWriter.java new file mode 100644 index 0000000000..84631fdee0 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/StringWriter.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class StringWriter extends Writer { + + public StringBuffer getBuffer() { + return null; + } + public void flush() { + } + public void close() { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/UnsupportedEncodingException.java b/JCL/converterJclMin1.5/src/java/io/UnsupportedEncodingException.java new file mode 100644 index 0000000000..916b5ccdcd --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/UnsupportedEncodingException.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class UnsupportedEncodingException extends IOException { + public UnsupportedEncodingException(String s) { + super(s); + } + public UnsupportedEncodingException() { + } +} diff --git a/JCL/converterJclMin1.5/src/java/io/Writer.java b/JCL/converterJclMin1.5/src/java/io/Writer.java new file mode 100644 index 0000000000..8a198ae50c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/io/Writer.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public abstract class Writer { + public abstract void flush() throws IOException; + public abstract void close() throws IOException; + public void write(String str) throws IOException { + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ArithmeticException.java b/JCL/converterJclMin1.5/src/java/lang/ArithmeticException.java new file mode 100644 index 0000000000..063baae8d8 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ArithmeticException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArithmeticException extends RuntimeException { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ArrayIndexOutOfBoundsException.java b/JCL/converterJclMin1.5/src/java/lang/ArrayIndexOutOfBoundsException.java new file mode 100644 index 0000000000..af436866fe --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ArrayIndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/AssertionError.java b/JCL/converterJclMin1.5/src/java/lang/AssertionError.java new file mode 100644 index 0000000000..73b789252c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/AssertionError.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class AssertionError extends Error { + + /** + * Constructor for AssertionError. + * @param s + */ + public AssertionError(String s) { + super(s); + } + + /** + * Constructor for AssertionError. + */ + public AssertionError() { + super(); + } + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Boolean.java b/JCL/converterJclMin1.5/src/java/lang/Boolean.java new file mode 100644 index 0000000000..198c9287b1 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Boolean.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Boolean { + public static final Boolean TRUE = new Boolean(true); + public static final Boolean FALSE = new Boolean(false); + public Boolean(boolean b) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Byte.java b/JCL/converterJclMin1.5/src/java/lang/Byte.java new file mode 100644 index 0000000000..75c71a1c00 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Byte.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Byte extends Number implements Comparable<Byte> { + private static final long serialVersionUID = 8750891329089001085L; + public Byte(byte b) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Byte b) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Character.java b/JCL/converterJclMin1.5/src/java/lang/Character.java new file mode 100644 index 0000000000..337c148689 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Character.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Character { + public Character(char c) { + } + public static char toLowerCase(char c) { + return ' '; + } + + public static int getNumericValue(char c) { + return 0; + } + + public static int digit(char ch, int radix) { + return 0; + } + public static boolean isWhitespace(char c) { + return false; + } + public static boolean isJavaIdentifierStart(char c) { + return false; + } + public static boolean isJavaIdentifierPart(char c) { + return false; + } + public static boolean isDigit(char c) { + return false; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Class.java b/JCL/converterJclMin1.5/src/java/lang/Class.java new file mode 100644 index 0000000000..7e82f809c8 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Class.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.io.InputStream; + +public class Class<T> { + public String getName() { + return null; + } + public InputStream getResourceAsStream(String s) { + return null; + } + + public native Class<? super T> getSuperclass(); + + public T newInstance() throws InstantiationException, IllegalAccessException { + return null; + } + + public static Class<?> forName(String className) throws ClassNotFoundException { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ClassCastException.java b/JCL/converterJclMin1.5/src/java/lang/ClassCastException.java new file mode 100644 index 0000000000..51bbbd2125 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ClassCastException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ClassCastException extends RuntimeException { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin1.5/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..838399474e --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ClassNotFoundException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class ClassNotFoundException extends Exception { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin1.5/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..2074efbf9e --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Cloneable.java b/JCL/converterJclMin1.5/src/java/lang/Cloneable.java new file mode 100644 index 0000000000..bc1cb76200 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Cloneable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Cloneable { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Comparable.java b/JCL/converterJclMin1.5/src/java/lang/Comparable.java new file mode 100644 index 0000000000..fae6b35eb2 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Comparable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Comparable<T> { + public int compareTo(T o); +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Deprecated.java b/JCL/converterJclMin1.5/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..b065093472 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Deprecated.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2007 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 + *******************************************************************************/ +package java.lang; + +import java.lang.annotation.Retention; +import static java.lang.annotation.RetentionPolicy.*; + +@Retention(RUNTIME) +public @interface Deprecated {} diff --git a/JCL/converterJclMin1.5/src/java/lang/Double.java b/JCL/converterJclMin1.5/src/java/lang/Double.java new file mode 100644 index 0000000000..18312efacb --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Double.java @@ -0,0 +1,61 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Double extends Number implements Comparable<Double> { + private static final long serialVersionUID = -5839202747810229696L; + public Double(double d) { + } + public static String toString(double d) { + return null; + } + public static Double valueOf(String s) throws NumberFormatException { + return null; + } + public static final double POSITIVE_INFINITY = 1.0 / 0.0; + public static boolean isNaN(double v) { + return false; + } + public double doubleValue() { + return 0.0; + } + public static final double MAX_VALUE = 1.7976931348623157e+308; + public static final double MIN_VALUE = 4.9e-324; + public static final double NaN = 0.0d / 0.0; + + public static native double longBitsToDouble(long bits); + public static native long doubleToLongBits(double value); + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + + public static double parseDouble(String s) { + return 0.0; + } + public int compareTo(Double d) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Enum.java b/JCL/converterJclMin1.5/src/java/lang/Enum.java new file mode 100644 index 0000000000..13aba40055 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Enum.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +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; + } + + public final int compareTo(T o) { + return 0; + } + + public final Class<T> getDeclaringClass() { + return null; + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.5/src/java/lang/Error.java b/JCL/converterJclMin1.5/src/java/lang/Error.java new file mode 100644 index 0000000000..fc4766d731 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Error.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Error extends Throwable { + + public Error(String s) { + super(s); + } + + public Error() { + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Exception.java b/JCL/converterJclMin1.5/src/java/lang/Exception.java new file mode 100644 index 0000000000..f7969390d9 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Exception.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Exception extends Throwable { + public Exception() { + } + public Exception(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ExceptionInInitializerError.java b/JCL/converterJclMin1.5/src/java/lang/ExceptionInInitializerError.java new file mode 100644 index 0000000000..907abda50d --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ExceptionInInitializerError.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ExceptionInInitializerError extends Error { + public ExceptionInInitializerError(String s) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Float.java b/JCL/converterJclMin1.5/src/java/lang/Float.java new file mode 100644 index 0000000000..fd5313bde3 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Float.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Float extends Number implements Comparable<Float> { + private static final long serialVersionUID = -872370025937303716L; + public static final float NaN = 0.0f / 0.0f; + public Float(float f) { + } + public static native float intBitsToFloat(int bits); + public static Float valueOf(String s) throws NumberFormatException { + return null; + } + public static final float POSITIVE_INFINITY = 1.0f / 0.0f; + public static boolean isNaN(float v) { + return false; + } + public float floatValue() { + return 0.0f; + } + public static final float MAX_VALUE = 3.4028235e+38f; + public static final float MIN_VALUE = 1.4e-45f; + public static native int floatToIntBits(float value); + public static String toString(float f) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Float f) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin1.5/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..4b3861fa0a --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/IllegalAccessException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class IllegalAccessException extends Exception { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin1.5/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..0e7fb8025f --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { + public IllegalMonitorStateException(String s) { + } + public IllegalMonitorStateException() { + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/IndexOutOfBoundsException.java b/JCL/converterJclMin1.5/src/java/lang/IndexOutOfBoundsException.java new file mode 100644 index 0000000000..7230956f64 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/IndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class IndexOutOfBoundsException extends RuntimeException { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/InstantiationException.java b/JCL/converterJclMin1.5/src/java/lang/InstantiationException.java new file mode 100644 index 0000000000..c6b5283aa9 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/InstantiationException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class InstantiationException extends Exception { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Integer.java b/JCL/converterJclMin1.5/src/java/lang/Integer.java new file mode 100644 index 0000000000..5cdeb3415d --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Integer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Integer extends Number implements Comparable<Integer> { + private static final long serialVersionUID = 6462609062775655000L; + + public Integer(int i) { + } + public Integer(String s) { + } + public static final int MAX_VALUE= 2147483647; + public static final int MIN_VALUE= -2147483647; + + public static int parseInt(String s) throws NumberFormatException { + return 0; + } + public static String toHexString(int i) { + return null; + } + public static String toString(int i) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Integer i) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/InterruptedException.java b/JCL/converterJclMin1.5/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..8bbd866439 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/InterruptedException.java @@ -0,0 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Iterable.java b/JCL/converterJclMin1.5/src/java/lang/Iterable.java new file mode 100644 index 0000000000..9e1be1a38c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Iterable.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.util.Iterator; + +public interface Iterable<T> { + Iterator<T> iterator(); +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Long.java b/JCL/converterJclMin1.5/src/java/lang/Long.java new file mode 100644 index 0000000000..f5f7357ac1 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Long.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Long extends Number implements Comparable<Long> { + private static final long serialVersionUID = 7046418566711138668L; + public static final long MIN_VALUE = 0x8000000000000000L; + public static final long MAX_VALUE = 0x7fffffffffffffffL; + public Long(long l) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Long l) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Math.java b/JCL/converterJclMin1.5/src/java/lang/Math.java new file mode 100644 index 0000000000..5183719463 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Math.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Math { + + public static int min(int a, int b) { + return 0; + } + public static int max(int a, int b) { + return 0; + } + public static int abs(int a) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/NoSuchFieldError.java b/JCL/converterJclMin1.5/src/java/lang/NoSuchFieldError.java new file mode 100644 index 0000000000..b6eefdc89e --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/NoSuchFieldError.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2020 GK Software SE and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + */ +package java.lang; +public class NoSuchFieldError extends IncompatibleClassChangeError { + public NoSuchFieldError() { super(); } + public NoSuchFieldError(String s) {super(s);} +} diff --git a/JCL/converterJclMin1.5/src/java/lang/NullPointerException.java b/JCL/converterJclMin1.5/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..6a76c3c57a --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/NullPointerException.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class NullPointerException extends RuntimeException { + + /** + * Constructor for NullPointerException. + * @param s + */ + public NullPointerException(String s) { + super(s); + } + + /** + * Constructor for NullPointerException. + */ + public NullPointerException() { + super(); + } + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Number.java b/JCL/converterJclMin1.5/src/java/lang/Number.java new file mode 100644 index 0000000000..c8ccd0833a --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Number.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public abstract class Number implements java.io.Serializable { + private static final long serialVersionUID = 3166984097235214156L; + public abstract int intValue(); + public abstract long longValue(); + public abstract float floatValue(); + public abstract double doubleValue(); + public byte byteValue() { + return (byte) intValue(); + } + public short shortValue() { + return (short) intValue(); + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/NumberFormatException.java b/JCL/converterJclMin1.5/src/java/lang/NumberFormatException.java new file mode 100644 index 0000000000..db1be617e0 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/NumberFormatException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class NumberFormatException extends RuntimeException { + +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Object.java b/JCL/converterJclMin1.5/src/java/lang/Object.java new file mode 100644 index 0000000000..9ed67c1b01 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Object.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +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 native Class<? extends Object> getClass(); + 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/converterJclMin1.5/src/java/lang/Override.java b/JCL/converterJclMin1.5/src/java/lang/Override.java new file mode 100644 index 0000000000..e30eba7b6d --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Override.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.lang.annotation.ElementType; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.lang.annotation.Retention; + +@Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) +public @interface Override { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.5/src/java/lang/Runnable.java b/JCL/converterJclMin1.5/src/java/lang/Runnable.java new file mode 100644 index 0000000000..d37f3130d1 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Runnable.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Runnable { + + void run(); +} diff --git a/JCL/converterJclMin1.5/src/java/lang/RuntimeException.java b/JCL/converterJclMin1.5/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..be85127b2e --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/RuntimeException.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class RuntimeException extends Exception { + public RuntimeException(String s) { + super(s); + } + public RuntimeException() { + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Short.java b/JCL/converterJclMin1.5/src/java/lang/Short.java new file mode 100644 index 0000000000..7c36571d45 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Short.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Short extends Number implements Comparable<Short> { + private static final long serialVersionUID = -8044450932684282285L; + public Short(short s) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Short s) { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/String.java b/JCL/converterJclMin1.5/src/java/lang/String.java new file mode 100644 index 0000000000..27cd154400 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/String.java @@ -0,0 +1,77 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class String implements java.io.Serializable, Comparable<String> { + private static final long serialVersionUID = 1705120029863330869L; + + public String() { + } + public String(char[] source) { + } + public String(String s) { + } + public String(char[] source, int i , int j) { + } + public int length() { + return 0; + } + public String replace(char oldChar, char newChar) { + return null; + } + + public int lastIndexOf(char c) { + return 0; + } + + public String substring(int i, int j) { + return null; + } + public String substring(int i) { + return null; + } + public char[] toCharArray() { + return null; + } + public int indexOf(String s) { + return 0; + } + public int indexOf(String s, int i) { + return 0; + } + public boolean endsWith(String s) { + return false; + } + public static String valueOf(int i) { + return null; + } + public static String valueOf(Object o) { + return null; + } + public static String valueOf(char[] tab) { + return null; + } + public static String valueOf(char[] tab, int i, int j) { + return null; + } + public int compareTo(String s) { + return 0; + } + public int indexOf(int ch, int fromIndex) { + return 0; + } + public char charAt(int i) { + return ' '; + } + public String trim() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/StringBuffer.java b/JCL/converterJclMin1.5/src/java/lang/StringBuffer.java new file mode 100644 index 0000000000..f77dd695b0 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/StringBuffer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class StringBuffer { + public StringBuffer() { + } + public StringBuffer(String s) { + } + public StringBuffer(int i) { + } + public synchronized StringBuffer insert(int offset, String str) { + return this; + } + public synchronized StringBuffer append(String s) { + return this; + } + public synchronized StringBuffer append(StringBuffer buffer) { + return this; + } + public synchronized StringBuffer append(boolean b) { + return this; + } + public synchronized StringBuffer append(int i) { + return this; + } + public synchronized StringBuffer append(long l) { + return this; + } + public synchronized StringBuffer append(float f) { + return this; + } + public synchronized StringBuffer append(double d) { + return this; + } + public synchronized StringBuffer append(char[] o) { + return this; + } + public synchronized StringBuffer append(char[] o, int i, int j) { + return this; + } + public synchronized StringBuffer append(Object o) { + return this; + } + public int length() { + return 0; + } + public char[] getChars(int i, int j, char[] tab, int k) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/SuppressWarnings.java b/JCL/converterJclMin1.5/src/java/lang/SuppressWarnings.java new file mode 100644 index 0000000000..7aa7548f57 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/SuppressWarnings.java @@ -0,0 +1,11 @@ +package java.lang; + +import static java.lang.annotation.ElementType.*; + +import java.lang.annotation.*; + +@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE}) +@Retention(RetentionPolicy.SOURCE) +public @interface SuppressWarnings { + String[] value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.5/src/java/lang/System.java b/JCL/converterJclMin1.5/src/java/lang/System.java new file mode 100644 index 0000000000..a13acd2404 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/System.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; + +public class System { + + public static PrintStream err; + public static PrintStream out; + + public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); + public static String getProperty(String s) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Throwable.java b/JCL/converterJclMin1.5/src/java/lang/Throwable.java new file mode 100644 index 0000000000..42ebfd75a1 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Throwable.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; +import java.io.Writer; + +public class Throwable { + public Throwable(String s) { + } + public Throwable() { + } + + public void printStackTrace() { + } + + public void printStackTrace(Writer w) { + } + + public void printStackTrace(PrintStream w) { + } + public String getMessage() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/Void.java b/JCL/converterJclMin1.5/src/java/lang/Void.java new file mode 100644 index 0000000000..72e9ca2bec --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/Void.java @@ -0,0 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Void {}
\ No newline at end of file diff --git a/JCL/converterJclMin1.5/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin1.5/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..f6dbed6917 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/annotation/Annotation.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public interface Annotation { + boolean equals(Object obj); + + int hashCode(); + + String toString(); + + Class<? extends Annotation> annotationType(); +} diff --git a/JCL/converterJclMin1.5/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin1.5/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..62caf2132c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/annotation/ElementType.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public enum ElementType { + TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE, ANNOTATION_TYPE, PACKAGE +} diff --git a/JCL/converterJclMin1.5/src/java/lang/annotation/Retention.java b/JCL/converterJclMin1.5/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..b51bfad6a7 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/annotation/Retention.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +} diff --git a/JCL/converterJclMin1.5/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin1.5/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..cbd3bfcc5c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/annotation/RetentionPolicy.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public enum RetentionPolicy { + SOURCE, CLASS, RUNTIME +} diff --git a/JCL/converterJclMin1.5/src/java/lang/annotation/Target.java b/JCL/converterJclMin1.5/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..bdfbeebd39 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/annotation/Target.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Target { + ElementType[] value(); +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ref/Reference.java b/JCL/converterJclMin1.5/src/java/lang/ref/Reference.java new file mode 100644 index 0000000000..4d163a8bd1 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ref/Reference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class Reference { + public Object get() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ref/ReferenceQueue.java b/JCL/converterJclMin1.5/src/java/lang/ref/ReferenceQueue.java new file mode 100644 index 0000000000..9fe70bdafe --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ref/ReferenceQueue.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class ReferenceQueue { + public Reference poll() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/lang/ref/WeakReference.java b/JCL/converterJclMin1.5/src/java/lang/ref/WeakReference.java new file mode 100644 index 0000000000..a45438ab53 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/lang/ref/WeakReference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + + +public class WeakReference extends Reference { + public WeakReference(Object o, ReferenceQueue queue) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/net/MalformedURLException.java b/JCL/converterJclMin1.5/src/java/net/MalformedURLException.java new file mode 100644 index 0000000000..887f4a7c4b --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/net/MalformedURLException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.net; + +public class MalformedURLException extends Exception { + +} diff --git a/JCL/converterJclMin1.5/src/java/text/NumberFormat.java b/JCL/converterJclMin1.5/src/java/text/NumberFormat.java new file mode 100644 index 0000000000..93a29b63cf --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/text/NumberFormat.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.text; + +public class NumberFormat { + + public final static NumberFormat getInstance() { + return null; + } + + public final String format (double d) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/AbstractCollection.java b/JCL/converterJclMin1.5/src/java/util/AbstractCollection.java new file mode 100644 index 0000000000..89e6b86afe --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/AbstractCollection.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractCollection<E> implements Collection<E> { +} diff --git a/JCL/converterJclMin1.5/src/java/util/AbstractList.java b/JCL/converterJclMin1.5/src/java/util/AbstractList.java new file mode 100644 index 0000000000..ab84c73f8a --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/AbstractList.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractList<E> extends AbstractCollection<E> implements List<E> { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.5/src/java/util/AbstractSet.java b/JCL/converterJclMin1.5/src/java/util/AbstractSet.java new file mode 100644 index 0000000000..c93ad94dad --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/AbstractSet.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E> { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.5/src/java/util/ArrayList.java b/JCL/converterJclMin1.5/src/java/util/ArrayList.java new file mode 100644 index 0000000000..08693f0aa6 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/ArrayList.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +import java.io.Serializable; + +public class ArrayList<T> extends AbstractList<T> implements List<T>, RandomAccess, Cloneable, Serializable { + private static final long serialVersionUID = -2169998406647523911L; + public ArrayList(int i) { + } + public ArrayList() { + } + public T[] toArray(T[] o) { + return null; + } + public int size() { + return 0; + } + public boolean add(T o) { + return false; + } + public int indexOf(T o) { + return 0; + } + public T remove(int index) { + return null; + } + public T get(int index) { + return null; + } + public boolean contains(T o) { + return false; + } + public Iterator<T> iterator() { + return null; + } + public boolean addAll(Collection<T> c) { + return false; + } + public void set(int i, T o) { + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Arrays.java b/JCL/converterJclMin1.5/src/java/util/Arrays.java new file mode 100644 index 0000000000..758e7004e9 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Arrays.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class Arrays { + public static void sort(Object[] tab) { + } + public static <T> List<T> asList(T... a) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Collection.java b/JCL/converterJclMin1.5/src/java/util/Collection.java new file mode 100644 index 0000000000..4415a6b508 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Collection.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +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/converterJclMin1.5/src/java/util/Collections.java b/JCL/converterJclMin1.5/src/java/util/Collections.java new file mode 100644 index 0000000000..fa2220d3ce --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Collections.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Collections { + public static <T extends Comparable<? super T>> void sort(List<T> list) { + } + + public static final <K,V> Map<K,V> emptyMap() { + return null; + } + public static final <T> List<T> emptyList() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Enumeration.java b/JCL/converterJclMin1.5/src/java/util/Enumeration.java new file mode 100644 index 0000000000..71ce4fb586 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Enumeration.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Enumeration { + + public boolean hasMoreElements(); + + public Object nextElement(); +} diff --git a/JCL/converterJclMin1.5/src/java/util/HashMap.java b/JCL/converterJclMin1.5/src/java/util/HashMap.java new file mode 100644 index 0000000000..d22a3176c5 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/HashMap.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public class HashMap<K,V> implements Map<K,V> { + public HashMap(int i) { + } + public V get(K k) { + return null; + } + public boolean containsKey(K k) { + return false; + } + public void put(K k, V v) { + } + public int size() { + return 0; + } + public Set<K> keySet() { + return null; + } + public Collection<V> values() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/HashSet.java b/JCL/converterJclMin1.5/src/java/util/HashSet.java new file mode 100644 index 0000000000..6e3afcc8b3 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/HashSet.java @@ -0,0 +1,22 @@ +package java.util; + +import java.io.Serializable; + +public class HashSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, Serializable { + private static final long serialVersionUID = 4886489800857586866L; + public Iterator<E> iterator() { + return null; + } + public boolean addAll(Collection<E> c) { + return false; + } + public E get(int index) { + return null; + } + public int size() { + return 0; + } + public E[] toArray(E[] o) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Hashtable.java b/JCL/converterJclMin1.5/src/java/util/Hashtable.java new file mode 100644 index 0000000000..fc2c5eb10f --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Hashtable.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Hashtable<U, V> implements Map<U, V> { + public Hashtable(int i) { + } + public V get(U u) { + return null; + } + public boolean containsKey(U u) { + return false; + } + public void put(U u, V v) { + } + public synchronized Enumeration elements() { + return null; + } + public int size() { + return 0; + } + public synchronized Enumeration keys() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Iterator.java b/JCL/converterJclMin1.5/src/java/util/Iterator.java new file mode 100644 index 0000000000..1356cd55a2 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Iterator.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Iterator<E> { + boolean hasNext(); + E next(); + void remove(); +} diff --git a/JCL/converterJclMin1.5/src/java/util/List.java b/JCL/converterJclMin1.5/src/java/util/List.java new file mode 100644 index 0000000000..8039b14743 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/List.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface List<T> extends Collection<T> { + public boolean add(T o); + public void set(int i, T o); +} diff --git a/JCL/converterJclMin1.5/src/java/util/Locale.java b/JCL/converterJclMin1.5/src/java/util/Locale.java new file mode 100644 index 0000000000..d591b3946a --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Locale.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Locale { + public static Locale getDefault() { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Map.java b/JCL/converterJclMin1.5/src/java/util/Map.java new file mode 100644 index 0000000000..fc06d3cece --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Map.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public interface Map<K,V> { + + public V get(K k); + public boolean containsKey(K k); + public void put(K k, V v); +} diff --git a/JCL/converterJclMin1.5/src/java/util/MissingResourceException.java b/JCL/converterJclMin1.5/src/java/util/MissingResourceException.java new file mode 100644 index 0000000000..f5f7c87e82 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/MissingResourceException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class MissingResourceException extends RuntimeException { + +} diff --git a/JCL/converterJclMin1.5/src/java/util/NoSuchElementException.java b/JCL/converterJclMin1.5/src/java/util/NoSuchElementException.java new file mode 100644 index 0000000000..a049d80d09 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/NoSuchElementException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class NoSuchElementException extends RuntimeException { + +} diff --git a/JCL/converterJclMin1.5/src/java/util/RandomAccess.java b/JCL/converterJclMin1.5/src/java/util/RandomAccess.java new file mode 100644 index 0000000000..78870df3a5 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/RandomAccess.java @@ -0,0 +1,3 @@ +package java.util; + +public interface RandomAccess {} diff --git a/JCL/converterJclMin1.5/src/java/util/ResourceBundle.java b/JCL/converterJclMin1.5/src/java/util/ResourceBundle.java new file mode 100644 index 0000000000..027b99f365 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/ResourceBundle.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public abstract class ResourceBundle { + + public static final ResourceBundle getBundle(String baseName, Locale locale) { + return null; + } + + public final String getString(String key) { + return null; + } + public abstract Enumeration getKeys(); +} diff --git a/JCL/converterJclMin1.5/src/java/util/Set.java b/JCL/converterJclMin1.5/src/java/util/Set.java new file mode 100644 index 0000000000..64284b40a8 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Set.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public interface Set<U> extends Collection<U> { + public Iterator<U> iterator(); +} diff --git a/JCL/converterJclMin1.5/src/java/util/StringTokenizer.java b/JCL/converterJclMin1.5/src/java/util/StringTokenizer.java new file mode 100644 index 0000000000..86214d8596 --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/StringTokenizer.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.util; + +public class StringTokenizer { + + public StringTokenizer(String toBeParsed, String delimiters) { + } + + public int countTokens() { + return 0; + } + + public String nextToken() { + return null; + } + + public boolean hasMoreTokens() { + return false; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/Vector.java b/JCL/converterJclMin1.5/src/java/util/Vector.java new file mode 100644 index 0000000000..7f8630a58c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/Vector.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public class Vector<E> { + + public Vector() { + } + + public Vector(int i) { + } + + public int size() { + return 0; + } + + public E get(int i) { + return null; + } + + public boolean add(E o) { + return true; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/zip/ZipEntry.java b/JCL/converterJclMin1.5/src/java/util/zip/ZipEntry.java new file mode 100644 index 0000000000..7c82b06d8c --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/zip/ZipEntry.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + + +public class ZipEntry { + public long getSize() { + return 0; + } +} diff --git a/JCL/converterJclMin1.5/src/java/util/zip/ZipFile.java b/JCL/converterJclMin1.5/src/java/util/zip/ZipFile.java new file mode 100644 index 0000000000..56c853a2bc --- /dev/null +++ b/JCL/converterJclMin1.5/src/java/util/zip/ZipFile.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + +import java.io.InputStream; + + +public class ZipFile { + public ZipEntry getEntry(String s) { + return null; + } + public InputStream getInputStream(ZipEntry zipEntry) { + return null; + } +} diff --git a/JCL/converterJclMin1.5/src/p1/p2/Annot.java b/JCL/converterJclMin1.5/src/p1/p2/Annot.java new file mode 100644 index 0000000000..e7bea6f88c --- /dev/null +++ b/JCL/converterJclMin1.5/src/p1/p2/Annot.java @@ -0,0 +1,8 @@ +package p1.p2; + +/** + * Test case for bug 147875 + */ +public @interface Annot { + MyEnum2 value(); +} diff --git a/JCL/converterJclMin1.5/src/p1/p2/MyEnum.java b/JCL/converterJclMin1.5/src/p1/p2/MyEnum.java new file mode 100644 index 0000000000..664daea9a8 --- /dev/null +++ b/JCL/converterJclMin1.5/src/p1/p2/MyEnum.java @@ -0,0 +1,17 @@ +package p1.p2; + +/** + * Test case for bug 147875 + */ +public enum MyEnum { + + @Annot(MyEnum2.B) + A, + @Annot(MyEnum2.C) + B, + @Annot(MyEnum2.A) + C, + @Annot(MyEnum2.D) + D; + +} diff --git a/JCL/converterJclMin1.5/src/p1/p2/MyEnum2.java b/JCL/converterJclMin1.5/src/p1/p2/MyEnum2.java new file mode 100644 index 0000000000..f07c0b66bc --- /dev/null +++ b/JCL/converterJclMin1.5/src/p1/p2/MyEnum2.java @@ -0,0 +1,7 @@ +package p1.p2; + +public enum MyEnum2 { + + A, B, C, D; + +} diff --git a/JCL/converterJclMin1.7/.classpath b/JCL/converterJclMin1.7/.classpath new file mode 100644 index 0000000000..51a8bbad89 --- /dev/null +++ b/JCL/converterJclMin1.7/.classpath @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin1.7/.project b/JCL/converterJclMin1.7/.project new file mode 100644 index 0000000000..74f0037702 --- /dev/null +++ b/JCL/converterJclMin1.7/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin1.7</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin1.7/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin1.7/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..ec1937b3f3 --- /dev/null +++ b/JCL/converterJclMin1.7/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/JCL/converterJclMin1.7/src/java/awt/List.java b/JCL/converterJclMin1.7/src/java/awt/List.java new file mode 100644 index 0000000000..b2fd6f7c24 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/awt/List.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.awt; + +public class List { + +} diff --git a/JCL/converterJclMin1.7/src/java/io/BufferedInputStream.java b/JCL/converterJclMin1.7/src/java/io/BufferedInputStream.java new file mode 100644 index 0000000000..aa574a1930 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/BufferedInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedInputStream extends InputStream { + public BufferedInputStream(InputStream inputStream) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/BufferedOutputStream.java b/JCL/converterJclMin1.7/src/java/io/BufferedOutputStream.java new file mode 100644 index 0000000000..3ab0e26fc5 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/BufferedOutputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedOutputStream extends OutputStream { + public BufferedOutputStream(FileOutputStream outputStream) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/BufferedWriter.java b/JCL/converterJclMin1.7/src/java/io/BufferedWriter.java new file mode 100644 index 0000000000..61122c1b2f --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/BufferedWriter.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedWriter extends Writer { + + public BufferedWriter(Writer writer) { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/ByteArrayInputStream.java b/JCL/converterJclMin1.7/src/java/io/ByteArrayInputStream.java new file mode 100644 index 0000000000..7f095dcbcb --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/ByteArrayInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayInputStream extends InputStream { + public ByteArrayInputStream(byte[] b) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/ByteArrayOutputStream.java b/JCL/converterJclMin1.7/src/java/io/ByteArrayOutputStream.java new file mode 100644 index 0000000000..8af40644cc --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/ByteArrayOutputStream.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayOutputStream extends OutputStream { + +} diff --git a/JCL/converterJclMin1.7/src/java/io/File.java b/JCL/converterJclMin1.7/src/java/io/File.java new file mode 100644 index 0000000000..e0465e47fa --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/File.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class File { + public static final char separatorChar = '\\'; + public static final String separator = "\\"; //$NON-NLS-1$ + + public File(String s) { + } + + public boolean exists() { + return false; + } + + public boolean isDirectory() { + return false; + } + + public String getAbsolutePath() { + return null; + } + + public boolean mkdirs() { + return false; + } + + public boolean mkdir() { + return false; + } + + public String getName() { + return null; + } + public long length() { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/FileInputStream.java b/JCL/converterJclMin1.7/src/java/io/FileInputStream.java new file mode 100644 index 0000000000..c51d1be33c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/FileInputStream.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileInputStream extends InputStream { + + public FileInputStream(File f) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/FileOutputStream.java b/JCL/converterJclMin1.7/src/java/io/FileOutputStream.java new file mode 100644 index 0000000000..c643bf9c41 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/FileOutputStream.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileOutputStream extends OutputStream { + public FileOutputStream(File f) { + } + public FileOutputStream(String s) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/FileWriter.java b/JCL/converterJclMin1.7/src/java/io/FileWriter.java new file mode 100644 index 0000000000..667a188869 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/FileWriter.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileWriter extends Writer { + + public FileWriter(String s) { + } + public void flush() throws IOException { + } + + public void close() throws IOException { + } + +} diff --git a/JCL/converterJclMin1.7/src/java/io/IOException.java b/JCL/converterJclMin1.7/src/java/io/IOException.java new file mode 100644 index 0000000000..e9dabf8df2 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/IOException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class IOException extends Exception { + private static final long serialVersionUID = 420068904675281479L; + public IOException(String s) { + super(s); + } + public IOException() { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/InputStream.java b/JCL/converterJclMin1.7/src/java/io/InputStream.java new file mode 100644 index 0000000000..8aa222e902 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/InputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InputStream { + public void close() throws IOException { + } + public int available() throws IOException { + return 0; + } + public int read(byte b[], int off, int len) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/InputStreamReader.java b/JCL/converterJclMin1.7/src/java/io/InputStreamReader.java new file mode 100644 index 0000000000..a9012a34b8 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/InputStreamReader.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class InputStreamReader extends Reader { + public InputStreamReader(InputStream inputStream) { + } + public InputStreamReader(InputStream stream, String s) throws UnsupportedEncodingException { + } + public int read(char cbuf[], int offset, int length) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/InterruptedIOException.java b/JCL/converterJclMin1.7/src/java/io/InterruptedIOException.java new file mode 100644 index 0000000000..c727ca292d --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/InterruptedIOException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InterruptedIOException extends Exception { + private static final long serialVersionUID = -2623465050370205911L; +} diff --git a/JCL/converterJclMin1.7/src/java/io/OutputStream.java b/JCL/converterJclMin1.7/src/java/io/OutputStream.java new file mode 100644 index 0000000000..8d9756265b --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/OutputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class OutputStream { + + public void write(byte b[]) throws IOException { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/PrintStream.java b/JCL/converterJclMin1.7/src/java/io/PrintStream.java new file mode 100644 index 0000000000..503f080425 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/PrintStream.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintStream { + + public void println() { + } + + public void println(String s) { + } + + public void println(int i) { + } + + public void println(Object o) { + } + + public void print(String s) { + } + + public void print(Object o) { + } + + public void print(int i) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/PrintWriter.java b/JCL/converterJclMin1.7/src/java/io/PrintWriter.java new file mode 100644 index 0000000000..ec7e885e07 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/PrintWriter.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintWriter extends Writer { + public PrintWriter(ByteArrayOutputStream stream) { + } + public PrintWriter(Writer w) { + } + public void print(String s) { + } + public void print(char[] tab) { + } + public void flush() { + } + public void close() { + } + public void println(String s) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/Reader.java b/JCL/converterJclMin1.7/src/java/io/Reader.java new file mode 100644 index 0000000000..bb74ec22fa --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/Reader.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class Reader { + +} diff --git a/JCL/converterJclMin1.7/src/java/io/Serializable.java b/JCL/converterJclMin1.7/src/java/io/Serializable.java new file mode 100644 index 0000000000..e33731bec8 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/Serializable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public interface Serializable { + +} diff --git a/JCL/converterJclMin1.7/src/java/io/StringWriter.java b/JCL/converterJclMin1.7/src/java/io/StringWriter.java new file mode 100644 index 0000000000..84631fdee0 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/StringWriter.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class StringWriter extends Writer { + + public StringBuffer getBuffer() { + return null; + } + public void flush() { + } + public void close() { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/UnsupportedEncodingException.java b/JCL/converterJclMin1.7/src/java/io/UnsupportedEncodingException.java new file mode 100644 index 0000000000..6eb4f03784 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/UnsupportedEncodingException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class UnsupportedEncodingException extends IOException { + private static final long serialVersionUID = 1031403719398591519L; + public UnsupportedEncodingException(String s) { + super(s); + } + public UnsupportedEncodingException() { + } +} diff --git a/JCL/converterJclMin1.7/src/java/io/Writer.java b/JCL/converterJclMin1.7/src/java/io/Writer.java new file mode 100644 index 0000000000..8a198ae50c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/io/Writer.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public abstract class Writer { + public abstract void flush() throws IOException; + public abstract void close() throws IOException; + public void write(String str) throws IOException { + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ArithmeticException.java b/JCL/converterJclMin1.7/src/java/lang/ArithmeticException.java new file mode 100644 index 0000000000..afe937b4cd --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ArithmeticException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArithmeticException extends RuntimeException { + private static final long serialVersionUID = 7325899601264404083L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ArrayIndexOutOfBoundsException.java b/JCL/converterJclMin1.7/src/java/lang/ArrayIndexOutOfBoundsException.java new file mode 100644 index 0000000000..3838011898 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ArrayIndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { + private static final long serialVersionUID = -7035391738132728176L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/AssertionError.java b/JCL/converterJclMin1.7/src/java/lang/AssertionError.java new file mode 100644 index 0000000000..30e69bcbb4 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/AssertionError.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class AssertionError extends Error { + private static final long serialVersionUID = 3910378697039934416L; + /** + * Constructor for AssertionError. + * @param s + */ + public AssertionError(String s) { + super(s); + } + + /** + * Constructor for AssertionError. + */ + public AssertionError() { + super(); + } + +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Boolean.java b/JCL/converterJclMin1.7/src/java/lang/Boolean.java new file mode 100644 index 0000000000..198c9287b1 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Boolean.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Boolean { + public static final Boolean TRUE = new Boolean(true); + public static final Boolean FALSE = new Boolean(false); + public Boolean(boolean b) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Byte.java b/JCL/converterJclMin1.7/src/java/lang/Byte.java new file mode 100644 index 0000000000..75c71a1c00 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Byte.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Byte extends Number implements Comparable<Byte> { + private static final long serialVersionUID = 8750891329089001085L; + public Byte(byte b) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Byte b) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Character.java b/JCL/converterJclMin1.7/src/java/lang/Character.java new file mode 100644 index 0000000000..337c148689 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Character.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Character { + public Character(char c) { + } + public static char toLowerCase(char c) { + return ' '; + } + + public static int getNumericValue(char c) { + return 0; + } + + public static int digit(char ch, int radix) { + return 0; + } + public static boolean isWhitespace(char c) { + return false; + } + public static boolean isJavaIdentifierStart(char c) { + return false; + } + public static boolean isJavaIdentifierPart(char c) { + return false; + } + public static boolean isDigit(char c) { + return false; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Class.java b/JCL/converterJclMin1.7/src/java/lang/Class.java new file mode 100644 index 0000000000..7e82f809c8 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Class.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.io.InputStream; + +public class Class<T> { + public String getName() { + return null; + } + public InputStream getResourceAsStream(String s) { + return null; + } + + public native Class<? super T> getSuperclass(); + + public T newInstance() throws InstantiationException, IllegalAccessException { + return null; + } + + public static Class<?> forName(String className) throws ClassNotFoundException { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ClassCastException.java b/JCL/converterJclMin1.7/src/java/lang/ClassCastException.java new file mode 100644 index 0000000000..72d6810139 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ClassCastException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ClassCastException extends RuntimeException { + private static final long serialVersionUID = -2824993730424549317L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin1.7/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..46742b7d4a --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ClassNotFoundException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class ClassNotFoundException extends Exception { + private static final long serialVersionUID = -7119744281167457228L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin1.7/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..5fb63b9ea1 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class CloneNotSupportedException extends Exception { + private static final long serialVersionUID = -3979306935580113776L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Cloneable.java b/JCL/converterJclMin1.7/src/java/lang/Cloneable.java new file mode 100644 index 0000000000..bc1cb76200 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Cloneable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Cloneable { + +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Comparable.java b/JCL/converterJclMin1.7/src/java/lang/Comparable.java new file mode 100644 index 0000000000..fae6b35eb2 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Comparable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Comparable<T> { + public int compareTo(T o); +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Deprecated.java b/JCL/converterJclMin1.7/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..b065093472 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Deprecated.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2007 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 + *******************************************************************************/ +package java.lang; + +import java.lang.annotation.Retention; +import static java.lang.annotation.RetentionPolicy.*; + +@Retention(RUNTIME) +public @interface Deprecated {} diff --git a/JCL/converterJclMin1.7/src/java/lang/Double.java b/JCL/converterJclMin1.7/src/java/lang/Double.java new file mode 100644 index 0000000000..18312efacb --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Double.java @@ -0,0 +1,61 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Double extends Number implements Comparable<Double> { + private static final long serialVersionUID = -5839202747810229696L; + public Double(double d) { + } + public static String toString(double d) { + return null; + } + public static Double valueOf(String s) throws NumberFormatException { + return null; + } + public static final double POSITIVE_INFINITY = 1.0 / 0.0; + public static boolean isNaN(double v) { + return false; + } + public double doubleValue() { + return 0.0; + } + public static final double MAX_VALUE = 1.7976931348623157e+308; + public static final double MIN_VALUE = 4.9e-324; + public static final double NaN = 0.0d / 0.0; + + public static native double longBitsToDouble(long bits); + public static native long doubleToLongBits(double value); + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + + public static double parseDouble(String s) { + return 0.0; + } + public int compareTo(Double d) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Enum.java b/JCL/converterJclMin1.7/src/java/lang/Enum.java new file mode 100644 index 0000000000..13aba40055 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Enum.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +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; + } + + public final int compareTo(T o) { + return 0; + } + + public final Class<T> getDeclaringClass() { + return null; + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/Error.java b/JCL/converterJclMin1.7/src/java/lang/Error.java new file mode 100644 index 0000000000..5b9b5435fd --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Error.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Error extends Throwable { + private static final long serialVersionUID = 9179125830904709243L; + + public Error(String s) { + super(s); + } + + public Error() { + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Exception.java b/JCL/converterJclMin1.7/src/java/lang/Exception.java new file mode 100644 index 0000000000..9580b40d76 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Exception.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Exception extends Throwable { + private static final long serialVersionUID = -3387516993124229948L; + public Exception() { + } + public Exception(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ExceptionInInitializerError.java b/JCL/converterJclMin1.7/src/java/lang/ExceptionInInitializerError.java new file mode 100644 index 0000000000..2cf1e21702 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ExceptionInInitializerError.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ExceptionInInitializerError extends Error { + private static final long serialVersionUID = 2267505642151644179L; + + public ExceptionInInitializerError(String s) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Float.java b/JCL/converterJclMin1.7/src/java/lang/Float.java new file mode 100644 index 0000000000..fd5313bde3 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Float.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Float extends Number implements Comparable<Float> { + private static final long serialVersionUID = -872370025937303716L; + public static final float NaN = 0.0f / 0.0f; + public Float(float f) { + } + public static native float intBitsToFloat(int bits); + public static Float valueOf(String s) throws NumberFormatException { + return null; + } + public static final float POSITIVE_INFINITY = 1.0f / 0.0f; + public static boolean isNaN(float v) { + return false; + } + public float floatValue() { + return 0.0f; + } + public static final float MAX_VALUE = 3.4028235e+38f; + public static final float MIN_VALUE = 1.4e-45f; + public static native int floatToIntBits(float value); + public static String toString(float f) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Float f) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin1.7/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..d07dbcff05 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/IllegalAccessException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class IllegalAccessException extends Exception { + private static final long serialVersionUID = 4022280013694488250L; + +} diff --git a/JCL/converterJclMin1.7/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin1.7/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..38ea0bfdc0 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { + private static final long serialVersionUID = 3460688064376288846L; + public IllegalMonitorStateException(String s) { + } + public IllegalMonitorStateException() { + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/IndexOutOfBoundsException.java b/JCL/converterJclMin1.7/src/java/lang/IndexOutOfBoundsException.java new file mode 100644 index 0000000000..32bbeb8747 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/IndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class IndexOutOfBoundsException extends RuntimeException { + private static final long serialVersionUID = 2192343167556759436L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/InstantiationException.java b/JCL/converterJclMin1.7/src/java/lang/InstantiationException.java new file mode 100644 index 0000000000..cccda2332a --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/InstantiationException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class InstantiationException extends Exception { + private static final long serialVersionUID = 6944714408584296262L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Integer.java b/JCL/converterJclMin1.7/src/java/lang/Integer.java new file mode 100644 index 0000000000..5cdeb3415d --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Integer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Integer extends Number implements Comparable<Integer> { + private static final long serialVersionUID = 6462609062775655000L; + + public Integer(int i) { + } + public Integer(String s) { + } + public static final int MAX_VALUE= 2147483647; + public static final int MIN_VALUE= -2147483647; + + public static int parseInt(String s) throws NumberFormatException { + return 0; + } + public static String toHexString(int i) { + return null; + } + public static String toString(int i) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Integer i) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/InterruptedException.java b/JCL/converterJclMin1.7/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..52b67124d9 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/InterruptedException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class InterruptedException extends Exception { + private static final long serialVersionUID = 4024069220747256448L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Iterable.java b/JCL/converterJclMin1.7/src/java/lang/Iterable.java new file mode 100644 index 0000000000..9e1be1a38c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Iterable.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.util.Iterator; + +public interface Iterable<T> { + Iterator<T> iterator(); +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Long.java b/JCL/converterJclMin1.7/src/java/lang/Long.java new file mode 100644 index 0000000000..f5f7357ac1 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Long.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Long extends Number implements Comparable<Long> { + private static final long serialVersionUID = 7046418566711138668L; + public static final long MIN_VALUE = 0x8000000000000000L; + public static final long MAX_VALUE = 0x7fffffffffffffffL; + public Long(long l) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Long l) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Math.java b/JCL/converterJclMin1.7/src/java/lang/Math.java new file mode 100644 index 0000000000..5183719463 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Math.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Math { + + public static int min(int a, int b) { + return 0; + } + public static int max(int a, int b) { + return 0; + } + public static int abs(int a) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin1.7/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..a516033612 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,28 @@ +package java.lang; + +/** + * Thrown when a particular method cannot be found. + * + * @author unascribed + * @since JDK1.0 + */ +public class NoSuchMethodException extends ReflectiveOperationException { + private static final long serialVersionUID = 5034388446362600923L; + + /** + * Constructs a <code>NoSuchMethodException</code> without a detail message. + */ + public NoSuchMethodException() { + super(); + } + + /** + * Constructs a <code>NoSuchMethodException</code> with a detail message. + * + * @param s + * the detail message. + */ + public NoSuchMethodException(String s) { + super(s); + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/NullPointerException.java b/JCL/converterJclMin1.7/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..6e9f4e1358 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/NullPointerException.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class NullPointerException extends RuntimeException { + private static final long serialVersionUID = -945245241303869636L; + + /** + * Constructor for NullPointerException. + * @param s + */ + public NullPointerException(String s) { + super(s); + } + + /** + * Constructor for NullPointerException. + */ + public NullPointerException() { + super(); + } + +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Number.java b/JCL/converterJclMin1.7/src/java/lang/Number.java new file mode 100644 index 0000000000..c8ccd0833a --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Number.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public abstract class Number implements java.io.Serializable { + private static final long serialVersionUID = 3166984097235214156L; + public abstract int intValue(); + public abstract long longValue(); + public abstract float floatValue(); + public abstract double doubleValue(); + public byte byteValue() { + return (byte) intValue(); + } + public short shortValue() { + return (short) intValue(); + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/NumberFormatException.java b/JCL/converterJclMin1.7/src/java/lang/NumberFormatException.java new file mode 100644 index 0000000000..eeb7eb737c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/NumberFormatException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class NumberFormatException extends RuntimeException { + private static final long serialVersionUID = 9070730590112500498L; +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Object.java b/JCL/converterJclMin1.7/src/java/lang/Object.java new file mode 100644 index 0000000000..9ed67c1b01 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Object.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +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 native Class<? extends Object> getClass(); + 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/converterJclMin1.7/src/java/lang/Override.java b/JCL/converterJclMin1.7/src/java/lang/Override.java new file mode 100644 index 0000000000..e30eba7b6d --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Override.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.lang.annotation.ElementType; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.lang.annotation.Retention; + +@Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) +public @interface Override { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/ReflectiveOperationException.java b/JCL/converterJclMin1.7/src/java/lang/ReflectiveOperationException.java new file mode 100644 index 0000000000..46df5a4c81 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ReflectiveOperationException.java @@ -0,0 +1,13 @@ +package java.lang; + +public class ReflectiveOperationException extends Exception { + static final long serialVersionUID = 123456789L; + + public ReflectiveOperationException() { + super(); + } + + public ReflectiveOperationException(String message) { + super(message); + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Runnable.java b/JCL/converterJclMin1.7/src/java/lang/Runnable.java new file mode 100644 index 0000000000..d37f3130d1 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Runnable.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Runnable { + + void run(); +} diff --git a/JCL/converterJclMin1.7/src/java/lang/RuntimeException.java b/JCL/converterJclMin1.7/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..6018b82614 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/RuntimeException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class RuntimeException extends Exception { + private static final long serialVersionUID = -8038704779788883814L; + public RuntimeException(String s) { + super(s); + } + public RuntimeException() { + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/SafeVarargs.java b/JCL/converterJclMin1.7/src/java/lang/SafeVarargs.java new file mode 100644 index 0000000000..765dc3f57e --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/SafeVarargs.java @@ -0,0 +1,12 @@ +package java.lang; + +import java.lang.annotation.Documented; +import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Retention; +import static java.lang.annotation.RetentionPolicy.*; +import java.lang.annotation.Target; + +@Documented +@Retention(RUNTIME) +@Target({CONSTRUCTOR, METHOD}) +public @interface SafeVarargs {}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/Short.java b/JCL/converterJclMin1.7/src/java/lang/Short.java new file mode 100644 index 0000000000..7c36571d45 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Short.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Short extends Number implements Comparable<Short> { + private static final long serialVersionUID = -8044450932684282285L; + public Short(short s) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Short s) { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/String.java b/JCL/converterJclMin1.7/src/java/lang/String.java new file mode 100644 index 0000000000..27cd154400 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/String.java @@ -0,0 +1,77 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class String implements java.io.Serializable, Comparable<String> { + private static final long serialVersionUID = 1705120029863330869L; + + public String() { + } + public String(char[] source) { + } + public String(String s) { + } + public String(char[] source, int i , int j) { + } + public int length() { + return 0; + } + public String replace(char oldChar, char newChar) { + return null; + } + + public int lastIndexOf(char c) { + return 0; + } + + public String substring(int i, int j) { + return null; + } + public String substring(int i) { + return null; + } + public char[] toCharArray() { + return null; + } + public int indexOf(String s) { + return 0; + } + public int indexOf(String s, int i) { + return 0; + } + public boolean endsWith(String s) { + return false; + } + public static String valueOf(int i) { + return null; + } + public static String valueOf(Object o) { + return null; + } + public static String valueOf(char[] tab) { + return null; + } + public static String valueOf(char[] tab, int i, int j) { + return null; + } + public int compareTo(String s) { + return 0; + } + public int indexOf(int ch, int fromIndex) { + return 0; + } + public char charAt(int i) { + return ' '; + } + public String trim() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/StringBuffer.java b/JCL/converterJclMin1.7/src/java/lang/StringBuffer.java new file mode 100644 index 0000000000..f77dd695b0 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/StringBuffer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class StringBuffer { + public StringBuffer() { + } + public StringBuffer(String s) { + } + public StringBuffer(int i) { + } + public synchronized StringBuffer insert(int offset, String str) { + return this; + } + public synchronized StringBuffer append(String s) { + return this; + } + public synchronized StringBuffer append(StringBuffer buffer) { + return this; + } + public synchronized StringBuffer append(boolean b) { + return this; + } + public synchronized StringBuffer append(int i) { + return this; + } + public synchronized StringBuffer append(long l) { + return this; + } + public synchronized StringBuffer append(float f) { + return this; + } + public synchronized StringBuffer append(double d) { + return this; + } + public synchronized StringBuffer append(char[] o) { + return this; + } + public synchronized StringBuffer append(char[] o, int i, int j) { + return this; + } + public synchronized StringBuffer append(Object o) { + return this; + } + public int length() { + return 0; + } + public char[] getChars(int i, int j, char[] tab, int k) { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/SuppressWarnings.java b/JCL/converterJclMin1.7/src/java/lang/SuppressWarnings.java new file mode 100644 index 0000000000..7aa7548f57 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/SuppressWarnings.java @@ -0,0 +1,11 @@ +package java.lang; + +import static java.lang.annotation.ElementType.*; + +import java.lang.annotation.*; + +@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE}) +@Retention(RetentionPolicy.SOURCE) +public @interface SuppressWarnings { + String[] value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/System.java b/JCL/converterJclMin1.7/src/java/lang/System.java new file mode 100644 index 0000000000..a13acd2404 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/System.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; + +public class System { + + public static PrintStream err; + public static PrintStream out; + + public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); + public static String getProperty(String s) { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Throwable.java b/JCL/converterJclMin1.7/src/java/lang/Throwable.java new file mode 100644 index 0000000000..55be032fdf --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Throwable.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; +import java.io.Serializable; +import java.io.Writer; + +public class Throwable implements Serializable { + private static final long serialVersionUID = -282116690407747101L; + public Throwable(String s) { + } + public Throwable() { + } + + public void printStackTrace() { + } + + public void printStackTrace(Writer w) { + } + + public void printStackTrace(PrintStream w) { + } + public String getMessage() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/Void.java b/JCL/converterJclMin1.7/src/java/lang/Void.java new file mode 100644 index 0000000000..72e9ca2bec --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/Void.java @@ -0,0 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Void {}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin1.7/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..f6dbed6917 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/annotation/Annotation.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public interface Annotation { + boolean equals(Object obj); + + int hashCode(); + + String toString(); + + Class<? extends Annotation> annotationType(); +} diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/Documented.java b/JCL/converterJclMin1.7/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..1826f297a1 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/annotation/Documented.java @@ -0,0 +1,10 @@ +package java.lang.annotation; + +import static java.lang.annotation.ElementType.*; +import static java.lang.annotation.RetentionPolicy.*; + +@Documented +@Retention(RUNTIME) +@Target(ANNOTATION_TYPE) +public @interface Documented { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin1.7/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..62caf2132c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/annotation/ElementType.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public enum ElementType { + TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE, ANNOTATION_TYPE, PACKAGE +} diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/Retention.java b/JCL/converterJclMin1.7/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..b51bfad6a7 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/annotation/Retention.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +} diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin1.7/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..cbd3bfcc5c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/annotation/RetentionPolicy.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public enum RetentionPolicy { + SOURCE, CLASS, RUNTIME +} diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/Target.java b/JCL/converterJclMin1.7/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..bdfbeebd39 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/annotation/Target.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Target { + ElementType[] value(); +} diff --git a/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..b702132820 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,37 @@ +/******************************************************************************* + * 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 + *******************************************************************************/ +package java.lang.invoke; + +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +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/converterJclMin1.7/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin1.7/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin1.7/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..067d5f9db0 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/invoke/MethodType.java @@ -0,0 +1,16 @@ +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/converterJclMin1.7/src/java/lang/ref/Reference.java b/JCL/converterJclMin1.7/src/java/lang/ref/Reference.java new file mode 100644 index 0000000000..4d163a8bd1 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ref/Reference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class Reference { + public Object get() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ref/ReferenceQueue.java b/JCL/converterJclMin1.7/src/java/lang/ref/ReferenceQueue.java new file mode 100644 index 0000000000..9fe70bdafe --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ref/ReferenceQueue.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class ReferenceQueue { + public Reference poll() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/lang/ref/WeakReference.java b/JCL/converterJclMin1.7/src/java/lang/ref/WeakReference.java new file mode 100644 index 0000000000..a45438ab53 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/lang/ref/WeakReference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + + +public class WeakReference extends Reference { + public WeakReference(Object o, ReferenceQueue queue) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/net/MalformedURLException.java b/JCL/converterJclMin1.7/src/java/net/MalformedURLException.java new file mode 100644 index 0000000000..3c31ec74fe --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/net/MalformedURLException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.net; + +public class MalformedURLException extends Exception { + private static final long serialVersionUID = -465098896288949281L; +} diff --git a/JCL/converterJclMin1.7/src/java/text/NumberFormat.java b/JCL/converterJclMin1.7/src/java/text/NumberFormat.java new file mode 100644 index 0000000000..93a29b63cf --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/text/NumberFormat.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.text; + +public class NumberFormat { + + public final static NumberFormat getInstance() { + return null; + } + + public final String format (double d) { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/AbstractCollection.java b/JCL/converterJclMin1.7/src/java/util/AbstractCollection.java new file mode 100644 index 0000000000..89e6b86afe --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/AbstractCollection.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractCollection<E> implements Collection<E> { +} diff --git a/JCL/converterJclMin1.7/src/java/util/AbstractList.java b/JCL/converterJclMin1.7/src/java/util/AbstractList.java new file mode 100644 index 0000000000..ab84c73f8a --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/AbstractList.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractList<E> extends AbstractCollection<E> implements List<E> { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/util/AbstractSet.java b/JCL/converterJclMin1.7/src/java/util/AbstractSet.java new file mode 100644 index 0000000000..c93ad94dad --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/AbstractSet.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E> { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/util/ArrayList.java b/JCL/converterJclMin1.7/src/java/util/ArrayList.java new file mode 100644 index 0000000000..08693f0aa6 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/ArrayList.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +import java.io.Serializable; + +public class ArrayList<T> extends AbstractList<T> implements List<T>, RandomAccess, Cloneable, Serializable { + private static final long serialVersionUID = -2169998406647523911L; + public ArrayList(int i) { + } + public ArrayList() { + } + public T[] toArray(T[] o) { + return null; + } + public int size() { + return 0; + } + public boolean add(T o) { + return false; + } + public int indexOf(T o) { + return 0; + } + public T remove(int index) { + return null; + } + public T get(int index) { + return null; + } + public boolean contains(T o) { + return false; + } + public Iterator<T> iterator() { + return null; + } + public boolean addAll(Collection<T> c) { + return false; + } + public void set(int i, T o) { + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Arrays.java b/JCL/converterJclMin1.7/src/java/util/Arrays.java new file mode 100644 index 0000000000..3fe9c6f924 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Arrays.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class Arrays { + public static void sort(Object[] tab) { + } + @SafeVarargs + public static <T> List<T> asList(T... a) { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Collection.java b/JCL/converterJclMin1.7/src/java/util/Collection.java new file mode 100644 index 0000000000..4415a6b508 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Collection.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +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/converterJclMin1.7/src/java/util/Collections.java b/JCL/converterJclMin1.7/src/java/util/Collections.java new file mode 100644 index 0000000000..fa2220d3ce --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Collections.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Collections { + public static <T extends Comparable<? super T>> void sort(List<T> list) { + } + + public static final <K,V> Map<K,V> emptyMap() { + return null; + } + public static final <T> List<T> emptyList() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Enumeration.java b/JCL/converterJclMin1.7/src/java/util/Enumeration.java new file mode 100644 index 0000000000..71ce4fb586 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Enumeration.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Enumeration { + + public boolean hasMoreElements(); + + public Object nextElement(); +} diff --git a/JCL/converterJclMin1.7/src/java/util/HashMap.java b/JCL/converterJclMin1.7/src/java/util/HashMap.java new file mode 100644 index 0000000000..d22a3176c5 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/HashMap.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public class HashMap<K,V> implements Map<K,V> { + public HashMap(int i) { + } + public V get(K k) { + return null; + } + public boolean containsKey(K k) { + return false; + } + public void put(K k, V v) { + } + public int size() { + return 0; + } + public Set<K> keySet() { + return null; + } + public Collection<V> values() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/HashSet.java b/JCL/converterJclMin1.7/src/java/util/HashSet.java new file mode 100644 index 0000000000..6e3afcc8b3 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/HashSet.java @@ -0,0 +1,22 @@ +package java.util; + +import java.io.Serializable; + +public class HashSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, Serializable { + private static final long serialVersionUID = 4886489800857586866L; + public Iterator<E> iterator() { + return null; + } + public boolean addAll(Collection<E> c) { + return false; + } + public E get(int index) { + return null; + } + public int size() { + return 0; + } + public E[] toArray(E[] o) { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Hashtable.java b/JCL/converterJclMin1.7/src/java/util/Hashtable.java new file mode 100644 index 0000000000..fc2c5eb10f --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Hashtable.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Hashtable<U, V> implements Map<U, V> { + public Hashtable(int i) { + } + public V get(U u) { + return null; + } + public boolean containsKey(U u) { + return false; + } + public void put(U u, V v) { + } + public synchronized Enumeration elements() { + return null; + } + public int size() { + return 0; + } + public synchronized Enumeration keys() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Iterator.java b/JCL/converterJclMin1.7/src/java/util/Iterator.java new file mode 100644 index 0000000000..1356cd55a2 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Iterator.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Iterator<E> { + boolean hasNext(); + E next(); + void remove(); +} diff --git a/JCL/converterJclMin1.7/src/java/util/List.java b/JCL/converterJclMin1.7/src/java/util/List.java new file mode 100644 index 0000000000..8039b14743 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/List.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface List<T> extends Collection<T> { + public boolean add(T o); + public void set(int i, T o); +} diff --git a/JCL/converterJclMin1.7/src/java/util/Locale.java b/JCL/converterJclMin1.7/src/java/util/Locale.java new file mode 100644 index 0000000000..d591b3946a --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Locale.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Locale { + public static Locale getDefault() { + return null; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Map.java b/JCL/converterJclMin1.7/src/java/util/Map.java new file mode 100644 index 0000000000..fc06d3cece --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Map.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public interface Map<K,V> { + + public V get(K k); + public boolean containsKey(K k); + public void put(K k, V v); +} diff --git a/JCL/converterJclMin1.7/src/java/util/MissingResourceException.java b/JCL/converterJclMin1.7/src/java/util/MissingResourceException.java new file mode 100644 index 0000000000..3f512497f5 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/MissingResourceException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class MissingResourceException extends RuntimeException { + private static final long serialVersionUID = -6463093713113089678L; +} diff --git a/JCL/converterJclMin1.7/src/java/util/NoSuchElementException.java b/JCL/converterJclMin1.7/src/java/util/NoSuchElementException.java new file mode 100644 index 0000000000..855fa6ae99 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/NoSuchElementException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class NoSuchElementException extends RuntimeException { + private static final long serialVersionUID = -3741760439480852710L; +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.7/src/java/util/RandomAccess.java b/JCL/converterJclMin1.7/src/java/util/RandomAccess.java new file mode 100644 index 0000000000..78870df3a5 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/RandomAccess.java @@ -0,0 +1,3 @@ +package java.util; + +public interface RandomAccess {} diff --git a/JCL/converterJclMin1.7/src/java/util/ResourceBundle.java b/JCL/converterJclMin1.7/src/java/util/ResourceBundle.java new file mode 100644 index 0000000000..027b99f365 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/ResourceBundle.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public abstract class ResourceBundle { + + public static final ResourceBundle getBundle(String baseName, Locale locale) { + return null; + } + + public final String getString(String key) { + return null; + } + public abstract Enumeration getKeys(); +} diff --git a/JCL/converterJclMin1.7/src/java/util/Set.java b/JCL/converterJclMin1.7/src/java/util/Set.java new file mode 100644 index 0000000000..64284b40a8 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Set.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public interface Set<U> extends Collection<U> { + public Iterator<U> iterator(); +} diff --git a/JCL/converterJclMin1.7/src/java/util/StringTokenizer.java b/JCL/converterJclMin1.7/src/java/util/StringTokenizer.java new file mode 100644 index 0000000000..86214d8596 --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/StringTokenizer.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.util; + +public class StringTokenizer { + + public StringTokenizer(String toBeParsed, String delimiters) { + } + + public int countTokens() { + return 0; + } + + public String nextToken() { + return null; + } + + public boolean hasMoreTokens() { + return false; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/Vector.java b/JCL/converterJclMin1.7/src/java/util/Vector.java new file mode 100644 index 0000000000..7f8630a58c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/Vector.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public class Vector<E> { + + public Vector() { + } + + public Vector(int i) { + } + + public int size() { + return 0; + } + + public E get(int i) { + return null; + } + + public boolean add(E o) { + return true; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/zip/ZipEntry.java b/JCL/converterJclMin1.7/src/java/util/zip/ZipEntry.java new file mode 100644 index 0000000000..7c82b06d8c --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/zip/ZipEntry.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + + +public class ZipEntry { + public long getSize() { + return 0; + } +} diff --git a/JCL/converterJclMin1.7/src/java/util/zip/ZipFile.java b/JCL/converterJclMin1.7/src/java/util/zip/ZipFile.java new file mode 100644 index 0000000000..56c853a2bc --- /dev/null +++ b/JCL/converterJclMin1.7/src/java/util/zip/ZipFile.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + +import java.io.InputStream; + + +public class ZipFile { + public ZipEntry getEntry(String s) { + return null; + } + public InputStream getInputStream(ZipEntry zipEntry) { + return null; + } +} diff --git a/JCL/converterJclMin1.8/.classpath b/JCL/converterJclMin1.8/.classpath new file mode 100644 index 0000000000..51a8bbad89 --- /dev/null +++ b/JCL/converterJclMin1.8/.classpath @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin1.8/.project b/JCL/converterJclMin1.8/.project new file mode 100644 index 0000000000..53b7e82649 --- /dev/null +++ b/JCL/converterJclMin1.8/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin1.8</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin1.8/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin1.8/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..ec1937b3f3 --- /dev/null +++ b/JCL/converterJclMin1.8/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/JCL/converterJclMin1.8/src/java/awt/List.java b/JCL/converterJclMin1.8/src/java/awt/List.java new file mode 100644 index 0000000000..b2fd6f7c24 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/awt/List.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.awt; + +public class List { + +} diff --git a/JCL/converterJclMin1.8/src/java/io/BufferedInputStream.java b/JCL/converterJclMin1.8/src/java/io/BufferedInputStream.java new file mode 100644 index 0000000000..aa574a1930 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/BufferedInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedInputStream extends InputStream { + public BufferedInputStream(InputStream inputStream) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/BufferedOutputStream.java b/JCL/converterJclMin1.8/src/java/io/BufferedOutputStream.java new file mode 100644 index 0000000000..3ab0e26fc5 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/BufferedOutputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedOutputStream extends OutputStream { + public BufferedOutputStream(FileOutputStream outputStream) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/BufferedWriter.java b/JCL/converterJclMin1.8/src/java/io/BufferedWriter.java new file mode 100644 index 0000000000..61122c1b2f --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/BufferedWriter.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class BufferedWriter extends Writer { + + public BufferedWriter(Writer writer) { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/ByteArrayInputStream.java b/JCL/converterJclMin1.8/src/java/io/ByteArrayInputStream.java new file mode 100644 index 0000000000..7f095dcbcb --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/ByteArrayInputStream.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayInputStream extends InputStream { + public ByteArrayInputStream(byte[] b) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/ByteArrayOutputStream.java b/JCL/converterJclMin1.8/src/java/io/ByteArrayOutputStream.java new file mode 100644 index 0000000000..8af40644cc --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/ByteArrayOutputStream.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class ByteArrayOutputStream extends OutputStream { + +} diff --git a/JCL/converterJclMin1.8/src/java/io/File.java b/JCL/converterJclMin1.8/src/java/io/File.java new file mode 100644 index 0000000000..e0465e47fa --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/File.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class File { + public static final char separatorChar = '\\'; + public static final String separator = "\\"; //$NON-NLS-1$ + + public File(String s) { + } + + public boolean exists() { + return false; + } + + public boolean isDirectory() { + return false; + } + + public String getAbsolutePath() { + return null; + } + + public boolean mkdirs() { + return false; + } + + public boolean mkdir() { + return false; + } + + public String getName() { + return null; + } + public long length() { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/FileInputStream.java b/JCL/converterJclMin1.8/src/java/io/FileInputStream.java new file mode 100644 index 0000000000..c51d1be33c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/FileInputStream.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileInputStream extends InputStream { + + public FileInputStream(File f) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/FileOutputStream.java b/JCL/converterJclMin1.8/src/java/io/FileOutputStream.java new file mode 100644 index 0000000000..c643bf9c41 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/FileOutputStream.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileOutputStream extends OutputStream { + public FileOutputStream(File f) { + } + public FileOutputStream(String s) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/FileWriter.java b/JCL/converterJclMin1.8/src/java/io/FileWriter.java new file mode 100644 index 0000000000..667a188869 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/FileWriter.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class FileWriter extends Writer { + + public FileWriter(String s) { + } + public void flush() throws IOException { + } + + public void close() throws IOException { + } + +} diff --git a/JCL/converterJclMin1.8/src/java/io/IOException.java b/JCL/converterJclMin1.8/src/java/io/IOException.java new file mode 100644 index 0000000000..e9dabf8df2 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/IOException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class IOException extends Exception { + private static final long serialVersionUID = 420068904675281479L; + public IOException(String s) { + super(s); + } + public IOException() { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/InputStream.java b/JCL/converterJclMin1.8/src/java/io/InputStream.java new file mode 100644 index 0000000000..8aa222e902 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/InputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InputStream { + public void close() throws IOException { + } + public int available() throws IOException { + return 0; + } + public int read(byte b[], int off, int len) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/InputStreamReader.java b/JCL/converterJclMin1.8/src/java/io/InputStreamReader.java new file mode 100644 index 0000000000..a9012a34b8 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/InputStreamReader.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class InputStreamReader extends Reader { + public InputStreamReader(InputStream inputStream) { + } + public InputStreamReader(InputStream stream, String s) throws UnsupportedEncodingException { + } + public int read(char cbuf[], int offset, int length) throws IOException { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/InterruptedIOException.java b/JCL/converterJclMin1.8/src/java/io/InterruptedIOException.java new file mode 100644 index 0000000000..c727ca292d --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/InterruptedIOException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class InterruptedIOException extends Exception { + private static final long serialVersionUID = -2623465050370205911L; +} diff --git a/JCL/converterJclMin1.8/src/java/io/OutputStream.java b/JCL/converterJclMin1.8/src/java/io/OutputStream.java new file mode 100644 index 0000000000..8d9756265b --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/OutputStream.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class OutputStream { + + public void write(byte b[]) throws IOException { + } + public void flush() throws IOException { + } + public void close() throws IOException { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/PrintStream.java b/JCL/converterJclMin1.8/src/java/io/PrintStream.java new file mode 100644 index 0000000000..503f080425 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/PrintStream.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintStream { + + public void println() { + } + + public void println(String s) { + } + + public void println(int i) { + } + + public void println(Object o) { + } + + public void print(String s) { + } + + public void print(Object o) { + } + + public void print(int i) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/PrintWriter.java b/JCL/converterJclMin1.8/src/java/io/PrintWriter.java new file mode 100644 index 0000000000..ec7e885e07 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/PrintWriter.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class PrintWriter extends Writer { + public PrintWriter(ByteArrayOutputStream stream) { + } + public PrintWriter(Writer w) { + } + public void print(String s) { + } + public void print(char[] tab) { + } + public void flush() { + } + public void close() { + } + public void println(String s) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/Reader.java b/JCL/converterJclMin1.8/src/java/io/Reader.java new file mode 100644 index 0000000000..bb74ec22fa --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/Reader.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class Reader { + +} diff --git a/JCL/converterJclMin1.8/src/java/io/Serializable.java b/JCL/converterJclMin1.8/src/java/io/Serializable.java new file mode 100644 index 0000000000..e33731bec8 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/Serializable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public interface Serializable { + +} diff --git a/JCL/converterJclMin1.8/src/java/io/StringWriter.java b/JCL/converterJclMin1.8/src/java/io/StringWriter.java new file mode 100644 index 0000000000..84631fdee0 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/StringWriter.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public class StringWriter extends Writer { + + public StringBuffer getBuffer() { + return null; + } + public void flush() { + } + public void close() { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/UnsupportedEncodingException.java b/JCL/converterJclMin1.8/src/java/io/UnsupportedEncodingException.java new file mode 100644 index 0000000000..6eb4f03784 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/UnsupportedEncodingException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + +public class UnsupportedEncodingException extends IOException { + private static final long serialVersionUID = 1031403719398591519L; + public UnsupportedEncodingException(String s) { + super(s); + } + public UnsupportedEncodingException() { + } +} diff --git a/JCL/converterJclMin1.8/src/java/io/Writer.java b/JCL/converterJclMin1.8/src/java/io/Writer.java new file mode 100644 index 0000000000..8a198ae50c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/io/Writer.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.io; + + +public abstract class Writer { + public abstract void flush() throws IOException; + public abstract void close() throws IOException; + public void write(String str) throws IOException { + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ArithmeticException.java b/JCL/converterJclMin1.8/src/java/lang/ArithmeticException.java new file mode 100644 index 0000000000..afe937b4cd --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ArithmeticException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArithmeticException extends RuntimeException { + private static final long serialVersionUID = 7325899601264404083L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ArrayIndexOutOfBoundsException.java b/JCL/converterJclMin1.8/src/java/lang/ArrayIndexOutOfBoundsException.java new file mode 100644 index 0000000000..3838011898 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ArrayIndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { + private static final long serialVersionUID = -7035391738132728176L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/AssertionError.java b/JCL/converterJclMin1.8/src/java/lang/AssertionError.java new file mode 100644 index 0000000000..30e69bcbb4 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/AssertionError.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class AssertionError extends Error { + private static final long serialVersionUID = 3910378697039934416L; + /** + * Constructor for AssertionError. + * @param s + */ + public AssertionError(String s) { + super(s); + } + + /** + * Constructor for AssertionError. + */ + public AssertionError() { + super(); + } + +} diff --git a/JCL/converterJclMin1.8/src/java/lang/AutoCloseable.java b/JCL/converterJclMin1.8/src/java/lang/AutoCloseable.java new file mode 100644 index 0000000000..b6fbe46773 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/AutoCloseable.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface AutoCloseable { + void close() throws Exception; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Boolean.java b/JCL/converterJclMin1.8/src/java/lang/Boolean.java new file mode 100644 index 0000000000..198c9287b1 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Boolean.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Boolean { + public static final Boolean TRUE = new Boolean(true); + public static final Boolean FALSE = new Boolean(false); + public Boolean(boolean b) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Byte.java b/JCL/converterJclMin1.8/src/java/lang/Byte.java new file mode 100644 index 0000000000..75c71a1c00 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Byte.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Byte extends Number implements Comparable<Byte> { + private static final long serialVersionUID = 8750891329089001085L; + public Byte(byte b) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Byte b) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Character.java b/JCL/converterJclMin1.8/src/java/lang/Character.java new file mode 100644 index 0000000000..337c148689 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Character.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Character { + public Character(char c) { + } + public static char toLowerCase(char c) { + return ' '; + } + + public static int getNumericValue(char c) { + return 0; + } + + public static int digit(char ch, int radix) { + return 0; + } + public static boolean isWhitespace(char c) { + return false; + } + public static boolean isJavaIdentifierStart(char c) { + return false; + } + public static boolean isJavaIdentifierPart(char c) { + return false; + } + public static boolean isDigit(char c) { + return false; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Class.java b/JCL/converterJclMin1.8/src/java/lang/Class.java new file mode 100644 index 0000000000..7e82f809c8 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Class.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.io.InputStream; + +public class Class<T> { + public String getName() { + return null; + } + public InputStream getResourceAsStream(String s) { + return null; + } + + public native Class<? super T> getSuperclass(); + + public T newInstance() throws InstantiationException, IllegalAccessException { + return null; + } + + public static Class<?> forName(String className) throws ClassNotFoundException { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ClassCastException.java b/JCL/converterJclMin1.8/src/java/lang/ClassCastException.java new file mode 100644 index 0000000000..72d6810139 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ClassCastException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ClassCastException extends RuntimeException { + private static final long serialVersionUID = -2824993730424549317L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin1.8/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..46742b7d4a --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ClassNotFoundException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class ClassNotFoundException extends Exception { + private static final long serialVersionUID = -7119744281167457228L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin1.8/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..5fb63b9ea1 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class CloneNotSupportedException extends Exception { + private static final long serialVersionUID = -3979306935580113776L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Cloneable.java b/JCL/converterJclMin1.8/src/java/lang/Cloneable.java new file mode 100644 index 0000000000..bc1cb76200 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Cloneable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Cloneable { + +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Comparable.java b/JCL/converterJclMin1.8/src/java/lang/Comparable.java new file mode 100644 index 0000000000..fae6b35eb2 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Comparable.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Comparable<T> { + public int compareTo(T o); +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Deprecated.java b/JCL/converterJclMin1.8/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..b065093472 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Deprecated.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2007 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 + *******************************************************************************/ +package java.lang; + +import java.lang.annotation.Retention; +import static java.lang.annotation.RetentionPolicy.*; + +@Retention(RUNTIME) +public @interface Deprecated {} diff --git a/JCL/converterJclMin1.8/src/java/lang/Double.java b/JCL/converterJclMin1.8/src/java/lang/Double.java new file mode 100644 index 0000000000..18312efacb --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Double.java @@ -0,0 +1,61 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Double extends Number implements Comparable<Double> { + private static final long serialVersionUID = -5839202747810229696L; + public Double(double d) { + } + public static String toString(double d) { + return null; + } + public static Double valueOf(String s) throws NumberFormatException { + return null; + } + public static final double POSITIVE_INFINITY = 1.0 / 0.0; + public static boolean isNaN(double v) { + return false; + } + public double doubleValue() { + return 0.0; + } + public static final double MAX_VALUE = 1.7976931348623157e+308; + public static final double MIN_VALUE = 4.9e-324; + public static final double NaN = 0.0d / 0.0; + + public static native double longBitsToDouble(long bits); + public static native long doubleToLongBits(double value); + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + + public static double parseDouble(String s) { + return 0.0; + } + public int compareTo(Double d) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Enum.java b/JCL/converterJclMin1.8/src/java/lang/Enum.java new file mode 100644 index 0000000000..13aba40055 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Enum.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +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; + } + + public final int compareTo(T o) { + return 0; + } + + public final Class<T> getDeclaringClass() { + return null; + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/Error.java b/JCL/converterJclMin1.8/src/java/lang/Error.java new file mode 100644 index 0000000000..5b9b5435fd --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Error.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Error extends Throwable { + private static final long serialVersionUID = 9179125830904709243L; + + public Error(String s) { + super(s); + } + + public Error() { + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Exception.java b/JCL/converterJclMin1.8/src/java/lang/Exception.java new file mode 100644 index 0000000000..9580b40d76 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Exception.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Exception extends Throwable { + private static final long serialVersionUID = -3387516993124229948L; + public Exception() { + } + public Exception(String s) { + super(s); + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ExceptionInInitializerError.java b/JCL/converterJclMin1.8/src/java/lang/ExceptionInInitializerError.java new file mode 100644 index 0000000000..2cf1e21702 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ExceptionInInitializerError.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class ExceptionInInitializerError extends Error { + private static final long serialVersionUID = 2267505642151644179L; + + public ExceptionInInitializerError(String s) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Float.java b/JCL/converterJclMin1.8/src/java/lang/Float.java new file mode 100644 index 0000000000..fd5313bde3 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Float.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Float extends Number implements Comparable<Float> { + private static final long serialVersionUID = -872370025937303716L; + public static final float NaN = 0.0f / 0.0f; + public Float(float f) { + } + public static native float intBitsToFloat(int bits); + public static Float valueOf(String s) throws NumberFormatException { + return null; + } + public static final float POSITIVE_INFINITY = 1.0f / 0.0f; + public static boolean isNaN(float v) { + return false; + } + public float floatValue() { + return 0.0f; + } + public static final float MAX_VALUE = 3.4028235e+38f; + public static final float MIN_VALUE = 1.4e-45f; + public static native int floatToIntBits(float value); + public static String toString(float f) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Float f) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin1.8/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..d07dbcff05 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/IllegalAccessException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class IllegalAccessException extends Exception { + private static final long serialVersionUID = 4022280013694488250L; + +} diff --git a/JCL/converterJclMin1.8/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin1.8/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..38ea0bfdc0 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { + private static final long serialVersionUID = 3460688064376288846L; + public IllegalMonitorStateException(String s) { + } + public IllegalMonitorStateException() { + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/IndexOutOfBoundsException.java b/JCL/converterJclMin1.8/src/java/lang/IndexOutOfBoundsException.java new file mode 100644 index 0000000000..32bbeb8747 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/IndexOutOfBoundsException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class IndexOutOfBoundsException extends RuntimeException { + private static final long serialVersionUID = 2192343167556759436L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/InstantiationException.java b/JCL/converterJclMin1.8/src/java/lang/InstantiationException.java new file mode 100644 index 0000000000..cccda2332a --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/InstantiationException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.lang; + +public class InstantiationException extends Exception { + private static final long serialVersionUID = 6944714408584296262L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Integer.java b/JCL/converterJclMin1.8/src/java/lang/Integer.java new file mode 100644 index 0000000000..5cdeb3415d --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Integer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Integer extends Number implements Comparable<Integer> { + private static final long serialVersionUID = 6462609062775655000L; + + public Integer(int i) { + } + public Integer(String s) { + } + public static final int MAX_VALUE= 2147483647; + public static final int MIN_VALUE= -2147483647; + + public static int parseInt(String s) throws NumberFormatException { + return 0; + } + public static String toHexString(int i) { + return null; + } + public static String toString(int i) { + return null; + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Integer i) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/InterruptedException.java b/JCL/converterJclMin1.8/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..52b67124d9 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/InterruptedException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class InterruptedException extends Exception { + private static final long serialVersionUID = 4024069220747256448L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Iterable.java b/JCL/converterJclMin1.8/src/java/lang/Iterable.java new file mode 100644 index 0000000000..9e1be1a38c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Iterable.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.util.Iterator; + +public interface Iterable<T> { + Iterator<T> iterator(); +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Long.java b/JCL/converterJclMin1.8/src/java/lang/Long.java new file mode 100644 index 0000000000..f5f7357ac1 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Long.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Long extends Number implements Comparable<Long> { + private static final long serialVersionUID = 7046418566711138668L; + public static final long MIN_VALUE = 0x8000000000000000L; + public static final long MAX_VALUE = 0x7fffffffffffffffL; + public Long(long l) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Long l) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Math.java b/JCL/converterJclMin1.8/src/java/lang/Math.java new file mode 100644 index 0000000000..5183719463 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Math.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class Math { + + public static int min(int a, int b) { + return 0; + } + public static int max(int a, int b) { + return 0; + } + public static int abs(int a) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin1.8/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..a516033612 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,28 @@ +package java.lang; + +/** + * Thrown when a particular method cannot be found. + * + * @author unascribed + * @since JDK1.0 + */ +public class NoSuchMethodException extends ReflectiveOperationException { + private static final long serialVersionUID = 5034388446362600923L; + + /** + * Constructs a <code>NoSuchMethodException</code> without a detail message. + */ + public NoSuchMethodException() { + super(); + } + + /** + * Constructs a <code>NoSuchMethodException</code> with a detail message. + * + * @param s + * the detail message. + */ + public NoSuchMethodException(String s) { + super(s); + } +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/NullPointerException.java b/JCL/converterJclMin1.8/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..6e9f4e1358 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/NullPointerException.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class NullPointerException extends RuntimeException { + private static final long serialVersionUID = -945245241303869636L; + + /** + * Constructor for NullPointerException. + * @param s + */ + public NullPointerException(String s) { + super(s); + } + + /** + * Constructor for NullPointerException. + */ + public NullPointerException() { + super(); + } + +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Number.java b/JCL/converterJclMin1.8/src/java/lang/Number.java new file mode 100644 index 0000000000..c8ccd0833a --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Number.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public abstract class Number implements java.io.Serializable { + private static final long serialVersionUID = 3166984097235214156L; + public abstract int intValue(); + public abstract long longValue(); + public abstract float floatValue(); + public abstract double doubleValue(); + public byte byteValue() { + return (byte) intValue(); + } + public short shortValue() { + return (short) intValue(); + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/NumberFormatException.java b/JCL/converterJclMin1.8/src/java/lang/NumberFormatException.java new file mode 100644 index 0000000000..eeb7eb737c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/NumberFormatException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class NumberFormatException extends RuntimeException { + private static final long serialVersionUID = 9070730590112500498L; +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Object.java b/JCL/converterJclMin1.8/src/java/lang/Object.java new file mode 100644 index 0000000000..9ed67c1b01 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Object.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +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 native Class<? extends Object> getClass(); + 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/converterJclMin1.8/src/java/lang/Override.java b/JCL/converterJclMin1.8/src/java/lang/Override.java new file mode 100644 index 0000000000..e30eba7b6d --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Override.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +import java.lang.annotation.ElementType; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.lang.annotation.Retention; + +@Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) +public @interface Override { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/ReflectiveOperationException.java b/JCL/converterJclMin1.8/src/java/lang/ReflectiveOperationException.java new file mode 100644 index 0000000000..46df5a4c81 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ReflectiveOperationException.java @@ -0,0 +1,13 @@ +package java.lang; + +public class ReflectiveOperationException extends Exception { + static final long serialVersionUID = 123456789L; + + public ReflectiveOperationException() { + super(); + } + + public ReflectiveOperationException(String message) { + super(message); + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Runnable.java b/JCL/converterJclMin1.8/src/java/lang/Runnable.java new file mode 100644 index 0000000000..d37f3130d1 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Runnable.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public interface Runnable { + + void run(); +} diff --git a/JCL/converterJclMin1.8/src/java/lang/RuntimeException.java b/JCL/converterJclMin1.8/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..6018b82614 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/RuntimeException.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class RuntimeException extends Exception { + private static final long serialVersionUID = -8038704779788883814L; + public RuntimeException(String s) { + super(s); + } + public RuntimeException() { + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/SafeVarargs.java b/JCL/converterJclMin1.8/src/java/lang/SafeVarargs.java new file mode 100644 index 0000000000..765dc3f57e --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/SafeVarargs.java @@ -0,0 +1,12 @@ +package java.lang; + +import java.lang.annotation.Documented; +import static java.lang.annotation.ElementType.*; +import java.lang.annotation.Retention; +import static java.lang.annotation.RetentionPolicy.*; +import java.lang.annotation.Target; + +@Documented +@Retention(RUNTIME) +@Target({CONSTRUCTOR, METHOD}) +public @interface SafeVarargs {}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/Short.java b/JCL/converterJclMin1.8/src/java/lang/Short.java new file mode 100644 index 0000000000..7c36571d45 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Short.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + + +public class Short extends Number implements Comparable<Short> { + private static final long serialVersionUID = -8044450932684282285L; + public Short(short s) { + } + /* (non-Javadoc) + * @see java.lang.Number#doubleValue() + */ + public double doubleValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#floatValue() + */ + public float floatValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#intValue() + */ + public int intValue() { + return 0; + } + /* (non-Javadoc) + * @see java.lang.Number#longValue() + */ + public long longValue() { + return 0; + } + public int compareTo(Short s) { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/String.java b/JCL/converterJclMin1.8/src/java/lang/String.java new file mode 100644 index 0000000000..27cd154400 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/String.java @@ -0,0 +1,77 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class String implements java.io.Serializable, Comparable<String> { + private static final long serialVersionUID = 1705120029863330869L; + + public String() { + } + public String(char[] source) { + } + public String(String s) { + } + public String(char[] source, int i , int j) { + } + public int length() { + return 0; + } + public String replace(char oldChar, char newChar) { + return null; + } + + public int lastIndexOf(char c) { + return 0; + } + + public String substring(int i, int j) { + return null; + } + public String substring(int i) { + return null; + } + public char[] toCharArray() { + return null; + } + public int indexOf(String s) { + return 0; + } + public int indexOf(String s, int i) { + return 0; + } + public boolean endsWith(String s) { + return false; + } + public static String valueOf(int i) { + return null; + } + public static String valueOf(Object o) { + return null; + } + public static String valueOf(char[] tab) { + return null; + } + public static String valueOf(char[] tab, int i, int j) { + return null; + } + public int compareTo(String s) { + return 0; + } + public int indexOf(int ch, int fromIndex) { + return 0; + } + public char charAt(int i) { + return ' '; + } + public String trim() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/StringBuffer.java b/JCL/converterJclMin1.8/src/java/lang/StringBuffer.java new file mode 100644 index 0000000000..f77dd695b0 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/StringBuffer.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +public class StringBuffer { + public StringBuffer() { + } + public StringBuffer(String s) { + } + public StringBuffer(int i) { + } + public synchronized StringBuffer insert(int offset, String str) { + return this; + } + public synchronized StringBuffer append(String s) { + return this; + } + public synchronized StringBuffer append(StringBuffer buffer) { + return this; + } + public synchronized StringBuffer append(boolean b) { + return this; + } + public synchronized StringBuffer append(int i) { + return this; + } + public synchronized StringBuffer append(long l) { + return this; + } + public synchronized StringBuffer append(float f) { + return this; + } + public synchronized StringBuffer append(double d) { + return this; + } + public synchronized StringBuffer append(char[] o) { + return this; + } + public synchronized StringBuffer append(char[] o, int i, int j) { + return this; + } + public synchronized StringBuffer append(Object o) { + return this; + } + public int length() { + return 0; + } + public char[] getChars(int i, int j, char[] tab, int k) { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/SuppressWarnings.java b/JCL/converterJclMin1.8/src/java/lang/SuppressWarnings.java new file mode 100644 index 0000000000..7aa7548f57 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/SuppressWarnings.java @@ -0,0 +1,11 @@ +package java.lang; + +import static java.lang.annotation.ElementType.*; + +import java.lang.annotation.*; + +@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE}) +@Retention(RetentionPolicy.SOURCE) +public @interface SuppressWarnings { + String[] value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/System.java b/JCL/converterJclMin1.8/src/java/lang/System.java new file mode 100644 index 0000000000..a13acd2404 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/System.java @@ -0,0 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; + +public class System { + + public static PrintStream err; + public static PrintStream out; + + public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); + public static String getProperty(String s) { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Throwable.java b/JCL/converterJclMin1.8/src/java/lang/Throwable.java new file mode 100644 index 0000000000..55be032fdf --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Throwable.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang; + +import java.io.PrintStream; +import java.io.Serializable; +import java.io.Writer; + +public class Throwable implements Serializable { + private static final long serialVersionUID = -282116690407747101L; + public Throwable(String s) { + } + public Throwable() { + } + + public void printStackTrace() { + } + + public void printStackTrace(Writer w) { + } + + public void printStackTrace(PrintStream w) { + } + public String getMessage() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/Void.java b/JCL/converterJclMin1.8/src/java/lang/Void.java new file mode 100644 index 0000000000..72e9ca2bec --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/Void.java @@ -0,0 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.lang; + +public class Void {}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin1.8/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..f6dbed6917 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/annotation/Annotation.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public interface Annotation { + boolean equals(Object obj); + + int hashCode(); + + String toString(); + + Class<? extends Annotation> annotationType(); +} diff --git a/JCL/converterJclMin1.8/src/java/lang/annotation/Documented.java b/JCL/converterJclMin1.8/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..1826f297a1 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/annotation/Documented.java @@ -0,0 +1,10 @@ +package java.lang.annotation; + +import static java.lang.annotation.ElementType.*; +import static java.lang.annotation.RetentionPolicy.*; + +@Documented +@Retention(RUNTIME) +@Target(ANNOTATION_TYPE) +public @interface Documented { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin1.8/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..efd97459fb --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/annotation/ElementType.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public enum ElementType { + TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE, ANNOTATION_TYPE, PACKAGE, TYPE_USE, TYPE_PARAMETER, +} diff --git a/JCL/converterJclMin1.8/src/java/lang/annotation/Retention.java b/JCL/converterJclMin1.8/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..b51bfad6a7 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/annotation/Retention.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +} diff --git a/JCL/converterJclMin1.8/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin1.8/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..cbd3bfcc5c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/annotation/RetentionPolicy.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +public enum RetentionPolicy { + SOURCE, CLASS, RUNTIME +} diff --git a/JCL/converterJclMin1.8/src/java/lang/annotation/Target.java b/JCL/converterJclMin1.8/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..bdfbeebd39 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/annotation/Target.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.annotation; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Target { + ElementType[] value(); +} diff --git a/JCL/converterJclMin1.8/src/java/lang/invoke/LambdaMetafactory.java b/JCL/converterJclMin1.8/src/java/lang/invoke/LambdaMetafactory.java new file mode 100644 index 0000000000..91c66f2ef9 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/invoke/LambdaMetafactory.java @@ -0,0 +1,35 @@ +/******************************************************************************* + * Copyright (c) 2013 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 + *******************************************************************************/ +package java.lang.invoke; + +public class LambdaMetafactory { + + public static final int FLAG_SERIALIZABLE = 1 << 0; + + public static final int FLAG_MARKERS = 1 << 1; + + public static CallSite metaFactory(MethodHandles.Lookup caller, + String invokedName, + MethodType invokedType, + MethodHandle samMethod, + MethodHandle implMethod, + MethodType instantiatedMethodType) { + return null; + } + + public static CallSite altMetaFactory(MethodHandles.Lookup caller, + String invokedName, + MethodType invokedType, + Object... args) { + return null; + } +} + diff --git a/JCL/converterJclMin1.8/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin1.8/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..b702132820 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,37 @@ +/******************************************************************************* + * 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 + *******************************************************************************/ +package java.lang.invoke; + +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +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/converterJclMin1.8/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin1.8/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin1.8/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin1.8/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..067d5f9db0 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/invoke/MethodType.java @@ -0,0 +1,16 @@ +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/converterJclMin1.8/src/java/lang/ref/Reference.java b/JCL/converterJclMin1.8/src/java/lang/ref/Reference.java new file mode 100644 index 0000000000..4d163a8bd1 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ref/Reference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class Reference { + public Object get() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ref/ReferenceQueue.java b/JCL/converterJclMin1.8/src/java/lang/ref/ReferenceQueue.java new file mode 100644 index 0000000000..9fe70bdafe --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ref/ReferenceQueue.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + +public class ReferenceQueue { + public Reference poll() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/lang/ref/WeakReference.java b/JCL/converterJclMin1.8/src/java/lang/ref/WeakReference.java new file mode 100644 index 0000000000..a45438ab53 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/ref/WeakReference.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.lang.ref; + + +public class WeakReference extends Reference { + public WeakReference(Object o, ReferenceQueue queue) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/net/MalformedURLException.java b/JCL/converterJclMin1.8/src/java/net/MalformedURLException.java new file mode 100644 index 0000000000..3c31ec74fe --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/net/MalformedURLException.java @@ -0,0 +1,15 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.net; + +public class MalformedURLException extends Exception { + private static final long serialVersionUID = -465098896288949281L; +} diff --git a/JCL/converterJclMin1.8/src/java/text/NumberFormat.java b/JCL/converterJclMin1.8/src/java/text/NumberFormat.java new file mode 100644 index 0000000000..93a29b63cf --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/text/NumberFormat.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.text; + +public class NumberFormat { + + public final static NumberFormat getInstance() { + return null; + } + + public final String format (double d) { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/AbstractCollection.java b/JCL/converterJclMin1.8/src/java/util/AbstractCollection.java new file mode 100644 index 0000000000..89e6b86afe --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/AbstractCollection.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractCollection<E> implements Collection<E> { +} diff --git a/JCL/converterJclMin1.8/src/java/util/AbstractList.java b/JCL/converterJclMin1.8/src/java/util/AbstractList.java new file mode 100644 index 0000000000..ab84c73f8a --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/AbstractList.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractList<E> extends AbstractCollection<E> implements List<E> { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/util/AbstractSet.java b/JCL/converterJclMin1.8/src/java/util/AbstractSet.java new file mode 100644 index 0000000000..c93ad94dad --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/AbstractSet.java @@ -0,0 +1,4 @@ +package java.util; + +public abstract class AbstractSet<E> extends AbstractCollection<E> implements Set<E> { +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/util/ArrayList.java b/JCL/converterJclMin1.8/src/java/util/ArrayList.java new file mode 100644 index 0000000000..7b76b91727 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/ArrayList.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +import java.io.Serializable; + +public class ArrayList<E> extends AbstractList<E> implements List<E>, RandomAccess, Cloneable, Serializable { + private static final long serialVersionUID = -2169998406647523911L; + public ArrayList(int i) { + } + public ArrayList() { + } + public <T> T[] toArray(T[] o) { + return null; + } + public int size() { + return 0; + } + public boolean add(E o) { + return false; + } + public int indexOf(E o) { + return 0; + } + public E remove(int index) { + return null; + } + public E get(int index) { + return null; + } + public boolean contains(E o) { + return false; + } + public Iterator<E> iterator() { + return null; + } + public boolean addAll(Collection<E> c) { + return false; + } + public void set(int i, E o) { + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Arrays.java b/JCL/converterJclMin1.8/src/java/util/Arrays.java new file mode 100644 index 0000000000..3fe9c6f924 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Arrays.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class Arrays { + public static void sort(Object[] tab) { + } + @SafeVarargs + public static <T> List<T> asList(T... a) { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Collection.java b/JCL/converterJclMin1.8/src/java/util/Collection.java new file mode 100644 index 0000000000..9074dea074 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Collection.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Collection<E> extends Iterable<E> { + public Iterator<E> iterator(); + public int size(); + public E get(int index); + public boolean addAll(Collection<E> c); + public <T> T[] toArray(T[] o); +} diff --git a/JCL/converterJclMin1.8/src/java/util/Collections.java b/JCL/converterJclMin1.8/src/java/util/Collections.java new file mode 100644 index 0000000000..fa2220d3ce --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Collections.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Collections { + public static <T extends Comparable<? super T>> void sort(List<T> list) { + } + + public static final <K,V> Map<K,V> emptyMap() { + return null; + } + public static final <T> List<T> emptyList() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Enumeration.java b/JCL/converterJclMin1.8/src/java/util/Enumeration.java new file mode 100644 index 0000000000..71ce4fb586 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Enumeration.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Enumeration { + + public boolean hasMoreElements(); + + public Object nextElement(); +} diff --git a/JCL/converterJclMin1.8/src/java/util/HashMap.java b/JCL/converterJclMin1.8/src/java/util/HashMap.java new file mode 100644 index 0000000000..d22a3176c5 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/HashMap.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public class HashMap<K,V> implements Map<K,V> { + public HashMap(int i) { + } + public V get(K k) { + return null; + } + public boolean containsKey(K k) { + return false; + } + public void put(K k, V v) { + } + public int size() { + return 0; + } + public Set<K> keySet() { + return null; + } + public Collection<V> values() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/HashSet.java b/JCL/converterJclMin1.8/src/java/util/HashSet.java new file mode 100644 index 0000000000..6b29bc41e4 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/HashSet.java @@ -0,0 +1,22 @@ +package java.util; + +import java.io.Serializable; + +public class HashSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, Serializable { + private static final long serialVersionUID = 4886489800857586866L; + public Iterator<E> iterator() { + return null; + } + public boolean addAll(Collection<E> c) { + return false; + } + public E get(int index) { + return null; + } + public int size() { + return 0; + } + public <T> T[] toArray(T[] o) { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Hashtable.java b/JCL/converterJclMin1.8/src/java/util/Hashtable.java new file mode 100644 index 0000000000..fc2c5eb10f --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Hashtable.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Hashtable<U, V> implements Map<U, V> { + public Hashtable(int i) { + } + public V get(U u) { + return null; + } + public boolean containsKey(U u) { + return false; + } + public void put(U u, V v) { + } + public synchronized Enumeration elements() { + return null; + } + public int size() { + return 0; + } + public synchronized Enumeration keys() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Iterator.java b/JCL/converterJclMin1.8/src/java/util/Iterator.java new file mode 100644 index 0000000000..1356cd55a2 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Iterator.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface Iterator<E> { + boolean hasNext(); + E next(); + void remove(); +} diff --git a/JCL/converterJclMin1.8/src/java/util/List.java b/JCL/converterJclMin1.8/src/java/util/List.java new file mode 100644 index 0000000000..8039b14743 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/List.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public interface List<T> extends Collection<T> { + public boolean add(T o); + public void set(int i, T o); +} diff --git a/JCL/converterJclMin1.8/src/java/util/Locale.java b/JCL/converterJclMin1.8/src/java/util/Locale.java new file mode 100644 index 0000000000..d591b3946a --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Locale.java @@ -0,0 +1,17 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public class Locale { + public static Locale getDefault() { + return null; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Map.java b/JCL/converterJclMin1.8/src/java/util/Map.java new file mode 100644 index 0000000000..fc06d3cece --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Map.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public interface Map<K,V> { + + public V get(K k); + public boolean containsKey(K k); + public void put(K k, V v); +} diff --git a/JCL/converterJclMin1.8/src/java/util/MissingResourceException.java b/JCL/converterJclMin1.8/src/java/util/MissingResourceException.java new file mode 100644 index 0000000000..3f512497f5 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/MissingResourceException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class MissingResourceException extends RuntimeException { + private static final long serialVersionUID = -6463093713113089678L; +} diff --git a/JCL/converterJclMin1.8/src/java/util/NoSuchElementException.java b/JCL/converterJclMin1.8/src/java/util/NoSuchElementException.java new file mode 100644 index 0000000000..855fa6ae99 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/NoSuchElementException.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public class NoSuchElementException extends RuntimeException { + private static final long serialVersionUID = -3741760439480852710L; +}
\ No newline at end of file diff --git a/JCL/converterJclMin1.8/src/java/util/RandomAccess.java b/JCL/converterJclMin1.8/src/java/util/RandomAccess.java new file mode 100644 index 0000000000..78870df3a5 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/RandomAccess.java @@ -0,0 +1,3 @@ +package java.util; + +public interface RandomAccess {} diff --git a/JCL/converterJclMin1.8/src/java/util/ResourceBundle.java b/JCL/converterJclMin1.8/src/java/util/ResourceBundle.java new file mode 100644 index 0000000000..027b99f365 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/ResourceBundle.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + +public abstract class ResourceBundle { + + public static final ResourceBundle getBundle(String baseName, Locale locale) { + return null; + } + + public final String getString(String key) { + return null; + } + public abstract Enumeration getKeys(); +} diff --git a/JCL/converterJclMin1.8/src/java/util/Set.java b/JCL/converterJclMin1.8/src/java/util/Set.java new file mode 100644 index 0000000000..64284b40a8 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Set.java @@ -0,0 +1,16 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util; + + +public interface Set<U> extends Collection<U> { + public Iterator<U> iterator(); +} diff --git a/JCL/converterJclMin1.8/src/java/util/StringTokenizer.java b/JCL/converterJclMin1.8/src/java/util/StringTokenizer.java new file mode 100644 index 0000000000..86214d8596 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/StringTokenizer.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2005 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 + *******************************************************************************/ +package java.util; + +public class StringTokenizer { + + public StringTokenizer(String toBeParsed, String delimiters) { + } + + public int countTokens() { + return 0; + } + + public String nextToken() { + return null; + } + + public boolean hasMoreTokens() { + return false; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/Vector.java b/JCL/converterJclMin1.8/src/java/util/Vector.java new file mode 100644 index 0000000000..7f8630a58c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/Vector.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 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 + *******************************************************************************/ +package java.util; + +public class Vector<E> { + + public Vector() { + } + + public Vector(int i) { + } + + public int size() { + return 0; + } + + public E get(int i) { + return null; + } + + public boolean add(E o) { + return true; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/zip/ZipEntry.java b/JCL/converterJclMin1.8/src/java/util/zip/ZipEntry.java new file mode 100644 index 0000000000..7c82b06d8c --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/zip/ZipEntry.java @@ -0,0 +1,18 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + + +public class ZipEntry { + public long getSize() { + return 0; + } +} diff --git a/JCL/converterJclMin1.8/src/java/util/zip/ZipFile.java b/JCL/converterJclMin1.8/src/java/util/zip/ZipFile.java new file mode 100644 index 0000000000..56c853a2bc --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/util/zip/ZipFile.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2000, 2004 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 + *******************************************************************************/ +package java.util.zip; + +import java.io.InputStream; + + +public class ZipFile { + public ZipEntry getEntry(String s) { + return null; + } + public InputStream getInputStream(ZipEntry zipEntry) { + return null; + } +} diff --git a/JCL/converterJclMin10/.classpath b/JCL/converterJclMin10/.classpath new file mode 100644 index 0000000000..6df3186bde --- /dev/null +++ b/JCL/converterJclMin10/.classpath @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-10"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin10/.project b/JCL/converterJclMin10/.project new file mode 100644 index 0000000000..a6fd02cfc6 --- /dev/null +++ b/JCL/converterJclMin10/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin10</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin10/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin10/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..a15d78d331 --- /dev/null +++ b/JCL/converterJclMin10/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,15 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=10 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=10 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=10 diff --git a/JCL/converterJclMin10/src/java/io/Serializable.java b/JCL/converterJclMin10/src/java/io/Serializable.java new file mode 100644 index 0000000000..3629567396 --- /dev/null +++ b/JCL/converterJclMin10/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io; + +public interface Serializable { +} diff --git a/JCL/converterJclMin10/src/java/lang/CharSequence.java b/JCL/converterJclMin10/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b03fc9e823 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface CharSequence { + int length(); +} diff --git a/JCL/converterJclMin10/src/java/lang/Class.java b/JCL/converterJclMin10/src/java/lang/Class.java new file mode 100644 index 0000000000..7d08bf1f38 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Class<T> { +} diff --git a/JCL/converterJclMin10/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin10/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..6f05a932fa --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin10/src/java/lang/Comparable.java b/JCL/converterJclMin10/src/java/lang/Comparable.java new file mode 100644 index 0000000000..59fb9eddd4 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang; + +public interface Comparable<T> { +} diff --git a/JCL/converterJclMin10/src/java/lang/Deprecated.java b/JCL/converterJclMin10/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..5226e586c7 --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/java/lang/Enum.java b/JCL/converterJclMin10/src/java/lang/Enum.java new file mode 100644 index 0000000000..d95e7ae4d4 --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/java/lang/Error.java b/JCL/converterJclMin10/src/java/lang/Error.java new file mode 100644 index 0000000000..02f4405bde --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/Error.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Error extends Throwable { +} diff --git a/JCL/converterJclMin10/src/java/lang/Exception.java b/JCL/converterJclMin10/src/java/lang/Exception.java new file mode 100644 index 0000000000..6e3cf321f9 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/Exception.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Exception extends Throwable { +} diff --git a/JCL/converterJclMin10/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin10/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..0d13e1e057 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class IllegalAccessException extends RuntimeException { + +} diff --git a/JCL/converterJclMin10/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin10/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..1f67418128 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { +} diff --git a/JCL/converterJclMin10/src/java/lang/InterruptedException.java b/JCL/converterJclMin10/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..93b236c421 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin10/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin10/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..3dd142bdd3 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class NoSuchMethodException extends RuntimeException { + +} diff --git a/JCL/converterJclMin10/src/java/lang/Object.java b/JCL/converterJclMin10/src/java/lang/Object.java new file mode 100644 index 0000000000..71ddb4ff83 --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/java/lang/RuntimeException.java b/JCL/converterJclMin10/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..3be7f777cc --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/RuntimeException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class RuntimeException extends Exception { +} diff --git a/JCL/converterJclMin10/src/java/lang/String.java b/JCL/converterJclMin10/src/java/lang/String.java new file mode 100644 index 0000000000..38fc3e31f3 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/String.java @@ -0,0 +1,5 @@ +package java.lang; + +public class String implements CharSequence { + public int length() { return 0; } +} diff --git a/JCL/converterJclMin10/src/java/lang/Throwable.java b/JCL/converterJclMin10/src/java/lang/Throwable.java new file mode 100644 index 0000000000..031917ca53 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/Throwable.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Throwable { +} diff --git a/JCL/converterJclMin10/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin10/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..530c272ea4 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation; +public interface Annotation { + +} diff --git a/JCL/converterJclMin10/src/java/lang/annotation/Documented.java b/JCL/converterJclMin10/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..840d0f454e --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/annotation/Documented.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Documented { +} diff --git a/JCL/converterJclMin10/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin10/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..b6dd0f6d5d --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/annotation/ElementType.java @@ -0,0 +1,13 @@ +package java.lang.annotation; +public enum ElementType { + ANNOTATION_TYPE, + CONSTRUCTOR, + FIELD, + LOCAL_VARIABLE, + METHOD, + PACKAGE, + PARAMETER, + TYPE, + TYPE_USE, + TYPE_PARAMETER, +} diff --git a/JCL/converterJclMin10/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin10/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..ed69c0b04e --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/annotation/Inherited.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Inherited { +}
\ No newline at end of file diff --git a/JCL/converterJclMin10/src/java/lang/annotation/Retention.java b/JCL/converterJclMin10/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..25e8ba7396 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/annotation/Retention.java @@ -0,0 +1,8 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin10/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin10/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..26349b1919 --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/java/lang/annotation/Target.java b/JCL/converterJclMin10/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..3ee9c31f48 --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/annotation/Target.java @@ -0,0 +1,8 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Target { + ElementType[] value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin10/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin10/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..8a1fdd030e --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,38 @@ +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; + +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/converterJclMin10/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin10/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin10/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin10/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin10/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..90a46dc8fe --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/java/util/Collection.java b/JCL/converterJclMin10/src/java/util/Collection.java new file mode 100644 index 0000000000..c04e2cd1ff --- /dev/null +++ b/JCL/converterJclMin10/src/java/util/Collection.java @@ -0,0 +1,9 @@ +package java.util; + +public interface Collection<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/converterJclMin10/src/java/util/Iterator.java b/JCL/converterJclMin10/src/java/util/Iterator.java new file mode 100644 index 0000000000..ae53f8408e --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/java/util/List.java b/JCL/converterJclMin10/src/java/util/List.java new file mode 100644 index 0000000000..4565ccb902 --- /dev/null +++ b/JCL/converterJclMin10/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util; + +public interface List<E> extends Collection<E> { +} diff --git a/JCL/converterJclMin10/src/java/util/Map.java b/JCL/converterJclMin10/src/java/util/Map.java new file mode 100644 index 0000000000..f47752cfdb --- /dev/null +++ b/JCL/converterJclMin10/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/converterJclMin10/src/module-info.java b/JCL/converterJclMin10/src/module-info.java new file mode 100644 index 0000000000..13fd25e6b0 --- /dev/null +++ b/JCL/converterJclMin10/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +} diff --git a/JCL/converterJclMin11/.classpath b/JCL/converterJclMin11/.classpath new file mode 100644 index 0000000000..d54800d3c9 --- /dev/null +++ b/JCL/converterJclMin11/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"> + <attributes> + <attribute name="module" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin11/.project b/JCL/converterJclMin11/.project new file mode 100644 index 0000000000..b5c0038b02 --- /dev/null +++ b/JCL/converterJclMin11/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin11</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin11/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin11/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..cd8d089a19 --- /dev/null +++ b/JCL/converterJclMin11/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,15 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate +org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=11 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=11 diff --git a/JCL/converterJclMin11/src/java/io/Serializable.java b/JCL/converterJclMin11/src/java/io/Serializable.java new file mode 100644 index 0000000000..3629567396 --- /dev/null +++ b/JCL/converterJclMin11/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io; + +public interface Serializable { +} diff --git a/JCL/converterJclMin11/src/java/lang/CharSequence.java b/JCL/converterJclMin11/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b03fc9e823 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface CharSequence { + int length(); +} diff --git a/JCL/converterJclMin11/src/java/lang/Class.java b/JCL/converterJclMin11/src/java/lang/Class.java new file mode 100644 index 0000000000..7d08bf1f38 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Class<T> { +} diff --git a/JCL/converterJclMin11/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin11/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..6f05a932fa --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin11/src/java/lang/Comparable.java b/JCL/converterJclMin11/src/java/lang/Comparable.java new file mode 100644 index 0000000000..59fb9eddd4 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang; + +public interface Comparable<T> { +} diff --git a/JCL/converterJclMin11/src/java/lang/Deprecated.java b/JCL/converterJclMin11/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..5226e586c7 --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/java/lang/Enum.java b/JCL/converterJclMin11/src/java/lang/Enum.java new file mode 100644 index 0000000000..d95e7ae4d4 --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/java/lang/Error.java b/JCL/converterJclMin11/src/java/lang/Error.java new file mode 100644 index 0000000000..02f4405bde --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/Error.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Error extends Throwable { +} diff --git a/JCL/converterJclMin11/src/java/lang/Exception.java b/JCL/converterJclMin11/src/java/lang/Exception.java new file mode 100644 index 0000000000..6e3cf321f9 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/Exception.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Exception extends Throwable { +} diff --git a/JCL/converterJclMin11/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin11/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..0d13e1e057 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class IllegalAccessException extends RuntimeException { + +} diff --git a/JCL/converterJclMin11/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin11/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..1f67418128 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { +} diff --git a/JCL/converterJclMin11/src/java/lang/InterruptedException.java b/JCL/converterJclMin11/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..93b236c421 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin11/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin11/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..3dd142bdd3 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class NoSuchMethodException extends RuntimeException { + +} diff --git a/JCL/converterJclMin11/src/java/lang/Object.java b/JCL/converterJclMin11/src/java/lang/Object.java new file mode 100644 index 0000000000..71ddb4ff83 --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/java/lang/RuntimeException.java b/JCL/converterJclMin11/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..3be7f777cc --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/RuntimeException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class RuntimeException extends Exception { +} diff --git a/JCL/converterJclMin11/src/java/lang/String.java b/JCL/converterJclMin11/src/java/lang/String.java new file mode 100644 index 0000000000..38fc3e31f3 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/String.java @@ -0,0 +1,5 @@ +package java.lang; + +public class String implements CharSequence { + public int length() { return 0; } +} diff --git a/JCL/converterJclMin11/src/java/lang/Throwable.java b/JCL/converterJclMin11/src/java/lang/Throwable.java new file mode 100644 index 0000000000..031917ca53 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/Throwable.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Throwable { +} diff --git a/JCL/converterJclMin11/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin11/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..530c272ea4 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation; +public interface Annotation { + +} diff --git a/JCL/converterJclMin11/src/java/lang/annotation/Documented.java b/JCL/converterJclMin11/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..840d0f454e --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/annotation/Documented.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Documented { +} diff --git a/JCL/converterJclMin11/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin11/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..b6dd0f6d5d --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/annotation/ElementType.java @@ -0,0 +1,13 @@ +package java.lang.annotation; +public enum ElementType { + ANNOTATION_TYPE, + CONSTRUCTOR, + FIELD, + LOCAL_VARIABLE, + METHOD, + PACKAGE, + PARAMETER, + TYPE, + TYPE_USE, + TYPE_PARAMETER, +} diff --git a/JCL/converterJclMin11/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin11/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..ed69c0b04e --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/annotation/Inherited.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Inherited { +}
\ No newline at end of file diff --git a/JCL/converterJclMin11/src/java/lang/annotation/Retention.java b/JCL/converterJclMin11/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..b635cccb97 --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/annotation/Retention.java @@ -0,0 +1,12 @@ +package java.lang.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin11/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin11/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..26349b1919 --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/java/lang/annotation/Target.java b/JCL/converterJclMin11/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..fcf6f550ad --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/annotation/Target.java @@ -0,0 +1,12 @@ +package java.lang.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +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/converterJclMin11/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin11/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..8a1fdd030e --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,38 @@ +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; + +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/converterJclMin11/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin11/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin11/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin11/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin11/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..90a46dc8fe --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/java/util/Collection.java b/JCL/converterJclMin11/src/java/util/Collection.java new file mode 100644 index 0000000000..c04e2cd1ff --- /dev/null +++ b/JCL/converterJclMin11/src/java/util/Collection.java @@ -0,0 +1,9 @@ +package java.util; + +public interface Collection<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/converterJclMin11/src/java/util/Iterator.java b/JCL/converterJclMin11/src/java/util/Iterator.java new file mode 100644 index 0000000000..ae53f8408e --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/java/util/List.java b/JCL/converterJclMin11/src/java/util/List.java new file mode 100644 index 0000000000..4565ccb902 --- /dev/null +++ b/JCL/converterJclMin11/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util; + +public interface List<E> extends Collection<E> { +} diff --git a/JCL/converterJclMin11/src/java/util/Map.java b/JCL/converterJclMin11/src/java/util/Map.java new file mode 100644 index 0000000000..f47752cfdb --- /dev/null +++ b/JCL/converterJclMin11/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/converterJclMin11/src/module-info.java b/JCL/converterJclMin11/src/module-info.java new file mode 100644 index 0000000000..13fd25e6b0 --- /dev/null +++ b/JCL/converterJclMin11/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +} diff --git a/JCL/converterJclMin12/.classpath b/JCL/converterJclMin12/.classpath new file mode 100644 index 0000000000..c0f260fb4c --- /dev/null +++ b/JCL/converterJclMin12/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-12"> + <attributes> + <attribute name="module" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin12/.project b/JCL/converterJclMin12/.project new file mode 100644 index 0000000000..9b3b2412ec --- /dev/null +++ b/JCL/converterJclMin12/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin12</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin12/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin12/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..71f736ff9f --- /dev/null +++ b/JCL/converterJclMin12/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=12 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=12 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=12 diff --git a/JCL/converterJclMin12/src/java/io/Serializable.java b/JCL/converterJclMin12/src/java/io/Serializable.java new file mode 100644 index 0000000000..3629567396 --- /dev/null +++ b/JCL/converterJclMin12/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io; + +public interface Serializable { +} diff --git a/JCL/converterJclMin12/src/java/lang/CharSequence.java b/JCL/converterJclMin12/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b03fc9e823 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface CharSequence { + int length(); +} diff --git a/JCL/converterJclMin12/src/java/lang/Class.java b/JCL/converterJclMin12/src/java/lang/Class.java new file mode 100644 index 0000000000..7d08bf1f38 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Class<T> { +} diff --git a/JCL/converterJclMin12/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin12/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..6f05a932fa --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin12/src/java/lang/Comparable.java b/JCL/converterJclMin12/src/java/lang/Comparable.java new file mode 100644 index 0000000000..59fb9eddd4 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang; + +public interface Comparable<T> { +} diff --git a/JCL/converterJclMin12/src/java/lang/Deprecated.java b/JCL/converterJclMin12/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..5226e586c7 --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/java/lang/Enum.java b/JCL/converterJclMin12/src/java/lang/Enum.java new file mode 100644 index 0000000000..d95e7ae4d4 --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/java/lang/Error.java b/JCL/converterJclMin12/src/java/lang/Error.java new file mode 100644 index 0000000000..02f4405bde --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/Error.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Error extends Throwable { +} diff --git a/JCL/converterJclMin12/src/java/lang/Exception.java b/JCL/converterJclMin12/src/java/lang/Exception.java new file mode 100644 index 0000000000..6e3cf321f9 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/Exception.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Exception extends Throwable { +} diff --git a/JCL/converterJclMin12/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin12/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..0d13e1e057 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class IllegalAccessException extends RuntimeException { + +} diff --git a/JCL/converterJclMin12/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin12/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..1f67418128 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { +} diff --git a/JCL/converterJclMin12/src/java/lang/InterruptedException.java b/JCL/converterJclMin12/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..93b236c421 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin12/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin12/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..3dd142bdd3 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class NoSuchMethodException extends RuntimeException { + +} diff --git a/JCL/converterJclMin12/src/java/lang/Object.java b/JCL/converterJclMin12/src/java/lang/Object.java new file mode 100644 index 0000000000..71ddb4ff83 --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/java/lang/RuntimeException.java b/JCL/converterJclMin12/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..3be7f777cc --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/RuntimeException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class RuntimeException extends Exception { +} diff --git a/JCL/converterJclMin12/src/java/lang/String.java b/JCL/converterJclMin12/src/java/lang/String.java new file mode 100644 index 0000000000..38fc3e31f3 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/String.java @@ -0,0 +1,5 @@ +package java.lang; + +public class String implements CharSequence { + public int length() { return 0; } +} diff --git a/JCL/converterJclMin12/src/java/lang/Throwable.java b/JCL/converterJclMin12/src/java/lang/Throwable.java new file mode 100644 index 0000000000..031917ca53 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/Throwable.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Throwable { +} diff --git a/JCL/converterJclMin12/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin12/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..530c272ea4 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation; +public interface Annotation { + +} diff --git a/JCL/converterJclMin12/src/java/lang/annotation/Documented.java b/JCL/converterJclMin12/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..840d0f454e --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/annotation/Documented.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Documented { +} diff --git a/JCL/converterJclMin12/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin12/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..b6dd0f6d5d --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/annotation/ElementType.java @@ -0,0 +1,13 @@ +package java.lang.annotation; +public enum ElementType { + ANNOTATION_TYPE, + CONSTRUCTOR, + FIELD, + LOCAL_VARIABLE, + METHOD, + PACKAGE, + PARAMETER, + TYPE, + TYPE_USE, + TYPE_PARAMETER, +} diff --git a/JCL/converterJclMin12/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin12/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..ed69c0b04e --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/annotation/Inherited.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Inherited { +}
\ No newline at end of file diff --git a/JCL/converterJclMin12/src/java/lang/annotation/Retention.java b/JCL/converterJclMin12/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..b635cccb97 --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/annotation/Retention.java @@ -0,0 +1,12 @@ +package java.lang.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin12/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin12/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..26349b1919 --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/java/lang/annotation/Target.java b/JCL/converterJclMin12/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..fcf6f550ad --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/annotation/Target.java @@ -0,0 +1,12 @@ +package java.lang.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +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/converterJclMin12/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin12/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..8a1fdd030e --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,38 @@ +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; + +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/converterJclMin12/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin12/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin12/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin12/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin12/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..90a46dc8fe --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/java/util/Collection.java b/JCL/converterJclMin12/src/java/util/Collection.java new file mode 100644 index 0000000000..c04e2cd1ff --- /dev/null +++ b/JCL/converterJclMin12/src/java/util/Collection.java @@ -0,0 +1,9 @@ +package java.util; + +public interface Collection<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/converterJclMin12/src/java/util/Iterator.java b/JCL/converterJclMin12/src/java/util/Iterator.java new file mode 100644 index 0000000000..ae53f8408e --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/java/util/List.java b/JCL/converterJclMin12/src/java/util/List.java new file mode 100644 index 0000000000..4565ccb902 --- /dev/null +++ b/JCL/converterJclMin12/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util; + +public interface List<E> extends Collection<E> { +} diff --git a/JCL/converterJclMin12/src/java/util/Map.java b/JCL/converterJclMin12/src/java/util/Map.java new file mode 100644 index 0000000000..f47752cfdb --- /dev/null +++ b/JCL/converterJclMin12/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/converterJclMin12/src/module-info.java b/JCL/converterJclMin12/src/module-info.java new file mode 100644 index 0000000000..13fd25e6b0 --- /dev/null +++ b/JCL/converterJclMin12/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +} diff --git a/JCL/converterJclMin13/.classpath b/JCL/converterJclMin13/.classpath new file mode 100644 index 0000000000..038a0e7bc9 --- /dev/null +++ b/JCL/converterJclMin13/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-13"> + <attributes> + <attribute name="module" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin13/.project b/JCL/converterJclMin13/.project new file mode 100644 index 0000000000..b3288f08cf --- /dev/null +++ b/JCL/converterJclMin13/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin13</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin13/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin13/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..ef28d2be0e --- /dev/null +++ b/JCL/converterJclMin13/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=13 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=13 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=13 diff --git a/JCL/converterJclMin13/src/META-INF/MANIFEST.MF b/JCL/converterJclMin13/src/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..c72a1fbae7 --- /dev/null +++ b/JCL/converterJclMin13/src/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.8.0_151 (Oracle Corporation) + diff --git a/JCL/converterJclMin13/src/java/io/InputStream.java b/JCL/converterJclMin13/src/java/io/InputStream.java new file mode 100644 index 0000000000..82511babed --- /dev/null +++ b/JCL/converterJclMin13/src/java/io/InputStream.java @@ -0,0 +1,5 @@ +package java.io; + +public class InputStream { + +} diff --git a/JCL/converterJclMin13/src/java/io/PrintStream.java b/JCL/converterJclMin13/src/java/io/PrintStream.java new file mode 100644 index 0000000000..19059381a2 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/io/Serializable.java b/JCL/converterJclMin13/src/java/io/Serializable.java new file mode 100644 index 0000000000..3629567396 --- /dev/null +++ b/JCL/converterJclMin13/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io; + +public interface Serializable { +} diff --git a/JCL/converterJclMin13/src/java/lang/CharSequence.java b/JCL/converterJclMin13/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b03fc9e823 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface CharSequence { + int length(); +} diff --git a/JCL/converterJclMin13/src/java/lang/Class.java b/JCL/converterJclMin13/src/java/lang/Class.java new file mode 100644 index 0000000000..7d08bf1f38 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Class<T> { +} diff --git a/JCL/converterJclMin13/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin13/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..7765ed820a --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin13/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..6f05a932fa --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin13/src/java/lang/Comparable.java b/JCL/converterJclMin13/src/java/lang/Comparable.java new file mode 100644 index 0000000000..59fb9eddd4 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang; + +public interface Comparable<T> { +} diff --git a/JCL/converterJclMin13/src/java/lang/Deprecated.java b/JCL/converterJclMin13/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..5226e586c7 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/Enum.java b/JCL/converterJclMin13/src/java/lang/Enum.java new file mode 100644 index 0000000000..d95e7ae4d4 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/Error.java b/JCL/converterJclMin13/src/java/lang/Error.java new file mode 100644 index 0000000000..820d8c6222 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/Exception.java b/JCL/converterJclMin13/src/java/lang/Exception.java new file mode 100644 index 0000000000..88b222a9c0 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin13/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..0d13e1e057 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class IllegalAccessException extends RuntimeException { + +} diff --git a/JCL/converterJclMin13/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin13/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..1f67418128 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { +} diff --git a/JCL/converterJclMin13/src/java/lang/IncompatibleClassChangeError.java b/JCL/converterJclMin13/src/java/lang/IncompatibleClassChangeError.java new file mode 100644 index 0000000000..9552b875b8 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/InterruptedException.java b/JCL/converterJclMin13/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..93b236c421 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin13/src/java/lang/Iterable.java b/JCL/converterJclMin13/src/java/lang/Iterable.java new file mode 100644 index 0000000000..ab4b9d53f6 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/LinkageError.java b/JCL/converterJclMin13/src/java/lang/LinkageError.java new file mode 100644 index 0000000000..199d39d98b --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/NoClassDefFoundError.java b/JCL/converterJclMin13/src/java/lang/NoClassDefFoundError.java new file mode 100644 index 0000000000..da0fe415c3 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/NoSuchFieldError.java b/JCL/converterJclMin13/src/java/lang/NoSuchFieldError.java new file mode 100644 index 0000000000..486e5339dc --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin13/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..3dd142bdd3 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class NoSuchMethodException extends RuntimeException { + +} diff --git a/JCL/converterJclMin13/src/java/lang/NullPointerException.java b/JCL/converterJclMin13/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..5e4ffa680d --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/Object.java b/JCL/converterJclMin13/src/java/lang/Object.java new file mode 100644 index 0000000000..71ddb4ff83 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/ReflectiveOperationException.java b/JCL/converterJclMin13/src/java/lang/ReflectiveOperationException.java new file mode 100644 index 0000000000..0860c67905 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/RuntimeException.java b/JCL/converterJclMin13/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..3d94712d7f --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/String.java b/JCL/converterJclMin13/src/java/lang/String.java new file mode 100644 index 0000000000..64f759b78b --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/System.java b/JCL/converterJclMin13/src/java/lang/System.java new file mode 100644 index 0000000000..bf56c93aa2 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/Throwable.java b/JCL/converterJclMin13/src/java/lang/Throwable.java new file mode 100644 index 0000000000..73ab84b695 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin13/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..530c272ea4 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation; +public interface Annotation { + +} diff --git a/JCL/converterJclMin13/src/java/lang/annotation/Documented.java b/JCL/converterJclMin13/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..840d0f454e --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/annotation/Documented.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Documented { +} diff --git a/JCL/converterJclMin13/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin13/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..7b5b59578e --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin13/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..ed69c0b04e --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/annotation/Inherited.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Inherited { +}
\ No newline at end of file diff --git a/JCL/converterJclMin13/src/java/lang/annotation/Retention.java b/JCL/converterJclMin13/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..b635cccb97 --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/annotation/Retention.java @@ -0,0 +1,12 @@ +package java.lang.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin13/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin13/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..26349b1919 --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/lang/annotation/Target.java b/JCL/converterJclMin13/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..fcf6f550ad --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/annotation/Target.java @@ -0,0 +1,12 @@ +package java.lang.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +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/converterJclMin13/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..8a1fdd030e --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,38 @@ +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; + +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/converterJclMin13/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin13/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin13/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin13/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin13/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..90a46dc8fe --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/util/Collection.java b/JCL/converterJclMin13/src/java/util/Collection.java new file mode 100644 index 0000000000..c6fb16779c --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/util/Iterator.java b/JCL/converterJclMin13/src/java/util/Iterator.java new file mode 100644 index 0000000000..ae53f8408e --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/util/List.java b/JCL/converterJclMin13/src/java/util/List.java new file mode 100644 index 0000000000..4565ccb902 --- /dev/null +++ b/JCL/converterJclMin13/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util; + +public interface List<E> extends Collection<E> { +} diff --git a/JCL/converterJclMin13/src/java/util/Map.java b/JCL/converterJclMin13/src/java/util/Map.java new file mode 100644 index 0000000000..f47752cfdb --- /dev/null +++ b/JCL/converterJclMin13/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/converterJclMin13/src/java/util/function/Consumer.java b/JCL/converterJclMin13/src/java/util/function/Consumer.java new file mode 100644 index 0000000000..dd5b3f408c --- /dev/null +++ b/JCL/converterJclMin13/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; + } +} diff --git a/JCL/converterJclMin13/src/javax/lang/model/SourceVersion.java b/JCL/converterJclMin13/src/javax/lang/model/SourceVersion.java new file mode 100644 index 0000000000..557ab18118 --- /dev/null +++ b/JCL/converterJclMin13/src/javax/lang/model/SourceVersion.java @@ -0,0 +1,66 @@ +package javax.lang.model; + +public enum SourceVersion { + + RELEASE_0, + + RELEASE_1, + + RELEASE_2, + + RELEASE_3, + + RELEASE_4, + + RELEASE_5, + + RELEASE_6, + + RELEASE_7, + + RELEASE_8, + RELEASE_9, + + RELEASE_10, + + RELEASE_11, + + RELEASE_12, + + RELEASE_13, + RELEASE_14; + + public static SourceVersion latest() { + return RELEASE_14; + } + + private static final SourceVersion latestSupported = getLatestSupported(); + + private static SourceVersion getLatestSupported() { + return RELEASE_14; + } + + public static SourceVersion latestSupported() { + return latestSupported; + } + + public static boolean isIdentifier(CharSequence name) { + return true; + } + + public static boolean isName(CharSequence name) { + return isName(name, latest()); + } + + public static boolean isName(CharSequence name, SourceVersion version) { + return true; + } + + public static boolean isKeyword(CharSequence s) { + return isKeyword(s, latest()); + } + + public static boolean isKeyword(CharSequence s, SourceVersion version) { + return true; + } +} diff --git a/JCL/converterJclMin13/src/module-info.java b/JCL/converterJclMin13/src/module-info.java new file mode 100644 index 0000000000..51a23b131b --- /dev/null +++ b/JCL/converterJclMin13/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +}
\ No newline at end of file diff --git a/JCL/converterJclMin14/.classpath b/JCL/converterJclMin14/.classpath new file mode 100644 index 0000000000..1cd9d959f9 --- /dev/null +++ b/JCL/converterJclMin14/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-14"> + <attributes> + <attribute name="module" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin14/.project b/JCL/converterJclMin14/.project new file mode 100644 index 0000000000..a031561b51 --- /dev/null +++ b/JCL/converterJclMin14/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin14</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin14/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin14/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..910a770eed --- /dev/null +++ b/JCL/converterJclMin14/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=14 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=14 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=14 diff --git a/JCL/converterJclMin14/src/META-INF/MANIFEST.MF b/JCL/converterJclMin14/src/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..c72a1fbae7 --- /dev/null +++ b/JCL/converterJclMin14/src/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.8.0_151 (Oracle Corporation) + diff --git a/JCL/converterJclMin14/src/java/io/InputStream.java b/JCL/converterJclMin14/src/java/io/InputStream.java new file mode 100644 index 0000000000..82511babed --- /dev/null +++ b/JCL/converterJclMin14/src/java/io/InputStream.java @@ -0,0 +1,5 @@ +package java.io; + +public class InputStream { + +} diff --git a/JCL/converterJclMin14/src/java/io/PrintStream.java b/JCL/converterJclMin14/src/java/io/PrintStream.java new file mode 100644 index 0000000000..19059381a2 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/io/Serializable.java b/JCL/converterJclMin14/src/java/io/Serializable.java new file mode 100644 index 0000000000..3629567396 --- /dev/null +++ b/JCL/converterJclMin14/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io; + +public interface Serializable { +} diff --git a/JCL/converterJclMin14/src/java/lang/CharSequence.java b/JCL/converterJclMin14/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b03fc9e823 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface CharSequence { + int length(); +} diff --git a/JCL/converterJclMin14/src/java/lang/Class.java b/JCL/converterJclMin14/src/java/lang/Class.java new file mode 100644 index 0000000000..7d08bf1f38 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Class<T> { +} diff --git a/JCL/converterJclMin14/src/java/lang/ClassNotFoundException.java b/JCL/converterJclMin14/src/java/lang/ClassNotFoundException.java new file mode 100644 index 0000000000..7765ed820a --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin14/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..6f05a932fa --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin14/src/java/lang/Comparable.java b/JCL/converterJclMin14/src/java/lang/Comparable.java new file mode 100644 index 0000000000..59fb9eddd4 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang; + +public interface Comparable<T> { +} diff --git a/JCL/converterJclMin14/src/java/lang/Deprecated.java b/JCL/converterJclMin14/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..5226e586c7 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Enum.java b/JCL/converterJclMin14/src/java/lang/Enum.java new file mode 100644 index 0000000000..d95e7ae4d4 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Error.java b/JCL/converterJclMin14/src/java/lang/Error.java new file mode 100644 index 0000000000..820d8c6222 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Exception.java b/JCL/converterJclMin14/src/java/lang/Exception.java new file mode 100644 index 0000000000..88b222a9c0 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin14/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..0d13e1e057 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class IllegalAccessException extends RuntimeException { + +} diff --git a/JCL/converterJclMin14/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin14/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..1f67418128 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { +} diff --git a/JCL/converterJclMin14/src/java/lang/IncompatibleClassChangeError.java b/JCL/converterJclMin14/src/java/lang/IncompatibleClassChangeError.java new file mode 100644 index 0000000000..9552b875b8 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/InterruptedException.java b/JCL/converterJclMin14/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..93b236c421 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin14/src/java/lang/Iterable.java b/JCL/converterJclMin14/src/java/lang/Iterable.java new file mode 100644 index 0000000000..ab4b9d53f6 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/LinkageError.java b/JCL/converterJclMin14/src/java/lang/LinkageError.java new file mode 100644 index 0000000000..199d39d98b --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/NoClassDefFoundError.java b/JCL/converterJclMin14/src/java/lang/NoClassDefFoundError.java new file mode 100644 index 0000000000..da0fe415c3 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/NoSuchFieldError.java b/JCL/converterJclMin14/src/java/lang/NoSuchFieldError.java new file mode 100644 index 0000000000..486e5339dc --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin14/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..3dd142bdd3 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class NoSuchMethodException extends RuntimeException { + +} diff --git a/JCL/converterJclMin14/src/java/lang/NullPointerException.java b/JCL/converterJclMin14/src/java/lang/NullPointerException.java new file mode 100644 index 0000000000..5e4ffa680d --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Object.java b/JCL/converterJclMin14/src/java/lang/Object.java new file mode 100644 index 0000000000..71ddb4ff83 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Override.java b/JCL/converterJclMin14/src/java/lang/Override.java new file mode 100644 index 0000000000..b94fa6e860 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Record.java b/JCL/converterJclMin14/src/java/lang/Record.java new file mode 100644 index 0000000000..c9913367b9 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/ReflectiveOperationException.java b/JCL/converterJclMin14/src/java/lang/ReflectiveOperationException.java new file mode 100644 index 0000000000..0860c67905 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/RuntimeException.java b/JCL/converterJclMin14/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..3d94712d7f --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/String.java b/JCL/converterJclMin14/src/java/lang/String.java new file mode 100644 index 0000000000..64f759b78b --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/System.java b/JCL/converterJclMin14/src/java/lang/System.java new file mode 100644 index 0000000000..bf56c93aa2 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/Throwable.java b/JCL/converterJclMin14/src/java/lang/Throwable.java new file mode 100644 index 0000000000..73ab84b695 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin14/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..530c272ea4 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation; +public interface Annotation { + +} diff --git a/JCL/converterJclMin14/src/java/lang/annotation/Documented.java b/JCL/converterJclMin14/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..840d0f454e --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/annotation/Documented.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Documented { +} diff --git a/JCL/converterJclMin14/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin14/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..7b5b59578e --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin14/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..ed69c0b04e --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/annotation/Inherited.java @@ -0,0 +1,7 @@ +package java.lang.annotation; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Inherited { +}
\ No newline at end of file diff --git a/JCL/converterJclMin14/src/java/lang/annotation/Retention.java b/JCL/converterJclMin14/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..3896b228f5 --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/annotation/Retention.java @@ -0,0 +1,10 @@ +package java.lang.annotation; + +import java.lang.annotation.Retention; + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.ANNOTATION_TYPE) +public @interface Retention { + RetentionPolicy value(); +}
\ No newline at end of file diff --git a/JCL/converterJclMin14/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin14/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..26349b1919 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/annotation/Target.java b/JCL/converterJclMin14/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..c7654f5a5c --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/annotation/Target.java @@ -0,0 +1,10 @@ +package java.lang.annotation; + +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/converterJclMin14/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin14/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..8a1fdd030e --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/invoke/MethodHandle.java @@ -0,0 +1,38 @@ +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; + +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/converterJclMin14/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin14/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..f40dc8200b --- /dev/null +++ b/JCL/converterJclMin14/src/java/lang/invoke/MethodHandles.java @@ -0,0 +1,21 @@ +package java.lang.invoke; + +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/converterJclMin14/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin14/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..90a46dc8fe --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/lang/runtime/ObjectMethods.java b/JCL/converterJclMin14/src/java/lang/runtime/ObjectMethods.java new file mode 100644 index 0000000000..7587fef8f0 --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/util/Collection.java b/JCL/converterJclMin14/src/java/util/Collection.java new file mode 100644 index 0000000000..c6fb16779c --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/util/Iterator.java b/JCL/converterJclMin14/src/java/util/Iterator.java new file mode 100644 index 0000000000..ae53f8408e --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/util/List.java b/JCL/converterJclMin14/src/java/util/List.java new file mode 100644 index 0000000000..4565ccb902 --- /dev/null +++ b/JCL/converterJclMin14/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util; + +public interface List<E> extends Collection<E> { +} diff --git a/JCL/converterJclMin14/src/java/util/Map.java b/JCL/converterJclMin14/src/java/util/Map.java new file mode 100644 index 0000000000..f47752cfdb --- /dev/null +++ b/JCL/converterJclMin14/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/converterJclMin14/src/java/util/function/Consumer.java b/JCL/converterJclMin14/src/java/util/function/Consumer.java new file mode 100644 index 0000000000..dd5b3f408c --- /dev/null +++ b/JCL/converterJclMin14/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; + } +} diff --git a/JCL/converterJclMin14/src/javax/lang/model/SourceVersion.java b/JCL/converterJclMin14/src/javax/lang/model/SourceVersion.java new file mode 100644 index 0000000000..557ab18118 --- /dev/null +++ b/JCL/converterJclMin14/src/javax/lang/model/SourceVersion.java @@ -0,0 +1,66 @@ +package javax.lang.model; + +public enum SourceVersion { + + RELEASE_0, + + RELEASE_1, + + RELEASE_2, + + RELEASE_3, + + RELEASE_4, + + RELEASE_5, + + RELEASE_6, + + RELEASE_7, + + RELEASE_8, + RELEASE_9, + + RELEASE_10, + + RELEASE_11, + + RELEASE_12, + + RELEASE_13, + RELEASE_14; + + public static SourceVersion latest() { + return RELEASE_14; + } + + private static final SourceVersion latestSupported = getLatestSupported(); + + private static SourceVersion getLatestSupported() { + return RELEASE_14; + } + + public static SourceVersion latestSupported() { + return latestSupported; + } + + public static boolean isIdentifier(CharSequence name) { + return true; + } + + public static boolean isName(CharSequence name) { + return isName(name, latest()); + } + + public static boolean isName(CharSequence name, SourceVersion version) { + return true; + } + + public static boolean isKeyword(CharSequence s) { + return isKeyword(s, latest()); + } + + public static boolean isKeyword(CharSequence s, SourceVersion version) { + return true; + } +} diff --git a/JCL/converterJclMin14/src/module-info.java b/JCL/converterJclMin14/src/module-info.java new file mode 100644 index 0000000000..51a23b131b --- /dev/null +++ b/JCL/converterJclMin14/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +}
\ No newline at end of file diff --git a/JCL/converterJclMin15/.classpath b/JCL/converterJclMin15/.classpath new file mode 100644 index 0000000000..7d3b4d8d1c --- /dev/null +++ b/JCL/converterJclMin15/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15"> + <attributes> + <attribute name="module" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin15/.project b/JCL/converterJclMin15/.project new file mode 100644 index 0000000000..63a468f98d --- /dev/null +++ b/JCL/converterJclMin15/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin15</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin15/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin15/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..223b166729 --- /dev/null +++ b/JCL/converterJclMin15/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=15 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=15 diff --git a/JCL/converterJclMin15/src/META-INF/MANIFEST.MF b/JCL/converterJclMin15/src/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..c72a1fbae7 --- /dev/null +++ b/JCL/converterJclMin15/src/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Created-By: 1.8.0_151 (Oracle Corporation) + 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; + } +} diff --git a/JCL/converterJclMin15/src/javax/lang/model/SourceVersion.java b/JCL/converterJclMin15/src/javax/lang/model/SourceVersion.java new file mode 100644 index 0000000000..557ab18118 --- /dev/null +++ b/JCL/converterJclMin15/src/javax/lang/model/SourceVersion.java @@ -0,0 +1,66 @@ +package javax.lang.model; + +public enum SourceVersion { + + RELEASE_0, + + RELEASE_1, + + RELEASE_2, + + RELEASE_3, + + RELEASE_4, + + RELEASE_5, + + RELEASE_6, + + RELEASE_7, + + RELEASE_8, + RELEASE_9, + + RELEASE_10, + + RELEASE_11, + + RELEASE_12, + + RELEASE_13, + RELEASE_14; + + public static SourceVersion latest() { + return RELEASE_14; + } + + private static final SourceVersion latestSupported = getLatestSupported(); + + private static SourceVersion getLatestSupported() { + return RELEASE_14; + } + + public static SourceVersion latestSupported() { + return latestSupported; + } + + public static boolean isIdentifier(CharSequence name) { + return true; + } + + public static boolean isName(CharSequence name) { + return isName(name, latest()); + } + + public static boolean isName(CharSequence name, SourceVersion version) { + return true; + } + + public static boolean isKeyword(CharSequence s) { + return isKeyword(s, latest()); + } + + public static boolean isKeyword(CharSequence s, SourceVersion version) { + return true; + } +} diff --git a/JCL/converterJclMin15/src/module-info.java b/JCL/converterJclMin15/src/module-info.java new file mode 100644 index 0000000000..51a23b131b --- /dev/null +++ b/JCL/converterJclMin15/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +}
\ No newline at end of file diff --git a/JCL/converterJclMin9/.classpath b/JCL/converterJclMin9/.classpath new file mode 100644 index 0000000000..6ee61f2eb4 --- /dev/null +++ b/JCL/converterJclMin9/.classpath @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-9"> + <attributes> + <attribute name="module" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/JCL/converterJclMin9/.project b/JCL/converterJclMin9/.project new file mode 100644 index 0000000000..dba36dc780 --- /dev/null +++ b/JCL/converterJclMin9/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>converterJclMin9</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> diff --git a/JCL/converterJclMin9/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin9/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..021167ab6f --- /dev/null +++ b/JCL/converterJclMin9/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=9 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=9 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=9 diff --git a/JCL/converterJclMin9/src/java/io/Serializable.java b/JCL/converterJclMin9/src/java/io/Serializable.java new file mode 100644 index 0000000000..3629567396 --- /dev/null +++ b/JCL/converterJclMin9/src/java/io/Serializable.java @@ -0,0 +1,4 @@ +package java.io; + +public interface Serializable { +} diff --git a/JCL/converterJclMin9/src/java/lang/CharSequence.java b/JCL/converterJclMin9/src/java/lang/CharSequence.java new file mode 100644 index 0000000000..b03fc9e823 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/CharSequence.java @@ -0,0 +1,5 @@ +package java.lang; + +public interface CharSequence { + int length(); +} diff --git a/JCL/converterJclMin9/src/java/lang/Class.java b/JCL/converterJclMin9/src/java/lang/Class.java new file mode 100644 index 0000000000..7d08bf1f38 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/Class.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Class<T> { +} diff --git a/JCL/converterJclMin9/src/java/lang/CloneNotSupportedException.java b/JCL/converterJclMin9/src/java/lang/CloneNotSupportedException.java new file mode 100644 index 0000000000..6f05a932fa --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/CloneNotSupportedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class CloneNotSupportedException extends Exception { +} diff --git a/JCL/converterJclMin9/src/java/lang/Comparable.java b/JCL/converterJclMin9/src/java/lang/Comparable.java new file mode 100644 index 0000000000..59fb9eddd4 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/Comparable.java @@ -0,0 +1,4 @@ +package java.lang; + +public interface Comparable<T> { +} diff --git a/JCL/converterJclMin9/src/java/lang/Deprecated.java b/JCL/converterJclMin9/src/java/lang/Deprecated.java new file mode 100644 index 0000000000..5226e586c7 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/Enum.java b/JCL/converterJclMin9/src/java/lang/Enum.java new file mode 100644 index 0000000000..d95e7ae4d4 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/Error.java b/JCL/converterJclMin9/src/java/lang/Error.java new file mode 100644 index 0000000000..02f4405bde --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/Error.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Error extends Throwable { +} diff --git a/JCL/converterJclMin9/src/java/lang/Exception.java b/JCL/converterJclMin9/src/java/lang/Exception.java new file mode 100644 index 0000000000..6e3cf321f9 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/Exception.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Exception extends Throwable { +} diff --git a/JCL/converterJclMin9/src/java/lang/IllegalAccessException.java b/JCL/converterJclMin9/src/java/lang/IllegalAccessException.java new file mode 100644 index 0000000000..0d13e1e057 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/IllegalAccessException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class IllegalAccessException extends RuntimeException { + +} diff --git a/JCL/converterJclMin9/src/java/lang/IllegalMonitorStateException.java b/JCL/converterJclMin9/src/java/lang/IllegalMonitorStateException.java new file mode 100644 index 0000000000..1f67418128 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/IllegalMonitorStateException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class IllegalMonitorStateException extends RuntimeException { +} diff --git a/JCL/converterJclMin9/src/java/lang/InterruptedException.java b/JCL/converterJclMin9/src/java/lang/InterruptedException.java new file mode 100644 index 0000000000..93b236c421 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/InterruptedException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class InterruptedException extends Exception { +} diff --git a/JCL/converterJclMin9/src/java/lang/Iterable.java b/JCL/converterJclMin9/src/java/lang/Iterable.java new file mode 100644 index 0000000000..c6f20607b2 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/Iterable.java @@ -0,0 +1,6 @@ +package java.lang; +import java.util.Iterator; +public interface Iterable<T> { + Iterator<T> iterator(); +} + diff --git a/JCL/converterJclMin9/src/java/lang/NoSuchMethodException.java b/JCL/converterJclMin9/src/java/lang/NoSuchMethodException.java new file mode 100644 index 0000000000..3dd142bdd3 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/NoSuchMethodException.java @@ -0,0 +1,5 @@ +package java.lang; + +public class NoSuchMethodException extends RuntimeException { + +} diff --git a/JCL/converterJclMin9/src/java/lang/Object.java b/JCL/converterJclMin9/src/java/lang/Object.java new file mode 100644 index 0000000000..71ddb4ff83 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/RuntimeException.java b/JCL/converterJclMin9/src/java/lang/RuntimeException.java new file mode 100644 index 0000000000..3be7f777cc --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/RuntimeException.java @@ -0,0 +1,4 @@ +package java.lang; + +public class RuntimeException extends Exception { +} diff --git a/JCL/converterJclMin9/src/java/lang/String.java b/JCL/converterJclMin9/src/java/lang/String.java new file mode 100644 index 0000000000..38fc3e31f3 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/String.java @@ -0,0 +1,5 @@ +package java.lang; + +public class String implements CharSequence { + public int length() { return 0; } +} diff --git a/JCL/converterJclMin9/src/java/lang/Throwable.java b/JCL/converterJclMin9/src/java/lang/Throwable.java new file mode 100644 index 0000000000..031917ca53 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/Throwable.java @@ -0,0 +1,4 @@ +package java.lang; + +public class Throwable { +} diff --git a/JCL/converterJclMin9/src/java/lang/annotation/Annotation.java b/JCL/converterJclMin9/src/java/lang/annotation/Annotation.java new file mode 100644 index 0000000000..530c272ea4 --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/annotation/Annotation.java @@ -0,0 +1,4 @@ +package java.lang.annotation; +public interface Annotation { + +} diff --git a/JCL/converterJclMin9/src/java/lang/annotation/Documented.java b/JCL/converterJclMin9/src/java/lang/annotation/Documented.java new file mode 100644 index 0000000000..b70fc96961 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin9/src/java/lang/annotation/ElementType.java new file mode 100644 index 0000000000..b6dd0f6d5d --- /dev/null +++ b/JCL/converterJclMin9/src/java/lang/annotation/ElementType.java @@ -0,0 +1,13 @@ +package java.lang.annotation; +public enum ElementType { + ANNOTATION_TYPE, + CONSTRUCTOR, + FIELD, + LOCAL_VARIABLE, + METHOD, + PACKAGE, + PARAMETER, + TYPE, + TYPE_USE, + TYPE_PARAMETER, +} diff --git a/JCL/converterJclMin9/src/java/lang/annotation/Inherited.java b/JCL/converterJclMin9/src/java/lang/annotation/Inherited.java new file mode 100644 index 0000000000..e51219ed39 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/annotation/Retention.java b/JCL/converterJclMin9/src/java/lang/annotation/Retention.java new file mode 100644 index 0000000000..9a23c8186d --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/annotation/RetentionPolicy.java b/JCL/converterJclMin9/src/java/lang/annotation/RetentionPolicy.java new file mode 100644 index 0000000000..26349b1919 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/annotation/Target.java b/JCL/converterJclMin9/src/java/lang/annotation/Target.java new file mode 100644 index 0000000000..8cd620502a --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/invoke/MethodHandle.java b/JCL/converterJclMin9/src/java/lang/invoke/MethodHandle.java new file mode 100644 index 0000000000..69736475bd --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/invoke/MethodHandles.java b/JCL/converterJclMin9/src/java/lang/invoke/MethodHandles.java new file mode 100644 index 0000000000..582995d9d8 --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/lang/invoke/MethodType.java b/JCL/converterJclMin9/src/java/lang/invoke/MethodType.java new file mode 100644 index 0000000000..90a46dc8fe --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/util/Collection.java b/JCL/converterJclMin9/src/java/util/Collection.java new file mode 100644 index 0000000000..c6fb16779c --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/util/Iterator.java b/JCL/converterJclMin9/src/java/util/Iterator.java new file mode 100644 index 0000000000..ae53f8408e --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/java/util/List.java b/JCL/converterJclMin9/src/java/util/List.java new file mode 100644 index 0000000000..4565ccb902 --- /dev/null +++ b/JCL/converterJclMin9/src/java/util/List.java @@ -0,0 +1,4 @@ +package java.util; + +public interface List<E> extends Collection<E> { +} diff --git a/JCL/converterJclMin9/src/java/util/Map.java b/JCL/converterJclMin9/src/java/util/Map.java new file mode 100644 index 0000000000..f47752cfdb --- /dev/null +++ b/JCL/converterJclMin9/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/converterJclMin9/src/module-info.java b/JCL/converterJclMin9/src/module-info.java new file mode 100644 index 0000000000..13fd25e6b0 --- /dev/null +++ b/JCL/converterJclMin9/src/module-info.java @@ -0,0 +1,7 @@ +module java.base { + exports java.lang; + exports java.lang.annotation; + exports java.lang.invoke; + exports java.io; + exports java.util; +} |