diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index 916d3db10cc..e2650078048 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -3,6 +3,6 @@ org.eclipse.tycho tycho-build - 4.0.7 + 4.0.10 \ No newline at end of file diff --git a/JCL/converterJclMin/.classpath b/JCL/converterJclMin/.classpath deleted file mode 100644 index 6ab8f66c5b6..00000000000 --- a/JCL/converterJclMin/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/JCL/converterJclMin/.project b/JCL/converterJclMin/.project deleted file mode 100644 index df6b4719b6f..00000000000 --- a/JCL/converterJclMin/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - converterJclMin - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/JCL/converterJclMin/.settings/org.eclipse.core.resources.prefs b/JCL/converterJclMin/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0203a..00000000000 --- a/JCL/converterJclMin/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/JCL/converterJclMin/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index cd734f41675..00000000000 --- a/JCL/converterJclMin/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index b2fd6f7c24a..00000000000 --- a/JCL/converterJclMin/src/java/awt/List.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 132f09602b8..00000000000 --- a/JCL/converterJclMin/src/java/awt/Point.java +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index aa574a1930e..00000000000 --- a/JCL/converterJclMin/src/java/io/BufferedInputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3ab0e26fc52..00000000000 --- a/JCL/converterJclMin/src/java/io/BufferedOutputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 61122c1b2f4..00000000000 --- a/JCL/converterJclMin/src/java/io/BufferedWriter.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7f095dcbcb4..00000000000 --- a/JCL/converterJclMin/src/java/io/ByteArrayInputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8af40644cc3..00000000000 --- a/JCL/converterJclMin/src/java/io/ByteArrayOutputStream.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e0465e47fa9..00000000000 --- a/JCL/converterJclMin/src/java/io/File.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c51d1be33c8..00000000000 --- a/JCL/converterJclMin/src/java/io/FileInputStream.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c643bf9c415..00000000000 --- a/JCL/converterJclMin/src/java/io/FileOutputStream.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 667a1888694..00000000000 --- a/JCL/converterJclMin/src/java/io/FileWriter.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a73f64275e4..00000000000 --- a/JCL/converterJclMin/src/java/io/IOException.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8aa222e9020..00000000000 --- a/JCL/converterJclMin/src/java/io/InputStream.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a9012a34b8a..00000000000 --- a/JCL/converterJclMin/src/java/io/InputStreamReader.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c95111adfcc..00000000000 --- a/JCL/converterJclMin/src/java/io/InterruptedIOException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8d9756265ba..00000000000 --- a/JCL/converterJclMin/src/java/io/OutputStream.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 503f080425d..00000000000 --- a/JCL/converterJclMin/src/java/io/PrintStream.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index ec7e885e07e..00000000000 --- a/JCL/converterJclMin/src/java/io/PrintWriter.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bb74ec22fa7..00000000000 --- a/JCL/converterJclMin/src/java/io/Reader.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e33731bec8f..00000000000 --- a/JCL/converterJclMin/src/java/io/Serializable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 84631fdee0d..00000000000 --- a/JCL/converterJclMin/src/java/io/StringWriter.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 916b5ccdcd2..00000000000 --- a/JCL/converterJclMin/src/java/io/UnsupportedEncodingException.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8a198ae50ca..00000000000 --- a/JCL/converterJclMin/src/java/io/Writer.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 063baae8d82..00000000000 --- a/JCL/converterJclMin/src/java/lang/ArithmeticException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index af436866fea..00000000000 --- a/JCL/converterJclMin/src/java/lang/ArrayIndexOutOfBoundsException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3acb2e6ec3a..00000000000 --- a/JCL/converterJclMin/src/java/lang/AssertionError.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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. - */ - 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 deleted file mode 100644 index 198c9287b17..00000000000 --- a/JCL/converterJclMin/src/java/lang/Boolean.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 57fe180246d..00000000000 --- a/JCL/converterJclMin/src/java/lang/Byte.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 337c148689e..00000000000 --- a/JCL/converterJclMin/src/java/lang/Character.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bfa8272d7de..00000000000 --- a/JCL/converterJclMin/src/java/lang/Class.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 51bbbd21252..00000000000 --- a/JCL/converterJclMin/src/java/lang/ClassCastException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 79875fa4a98..00000000000 --- a/JCL/converterJclMin/src/java/lang/ClassNotFoundException.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 2074efbf9e5..00000000000 --- a/JCL/converterJclMin/src/java/lang/CloneNotSupportedException.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bc1cb76200b..00000000000 --- a/JCL/converterJclMin/src/java/lang/Cloneable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 09be762d0fe..00000000000 --- a/JCL/converterJclMin/src/java/lang/Comparable.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fee7129f89c..00000000000 --- a/JCL/converterJclMin/src/java/lang/Double.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fc4766d7318..00000000000 --- a/JCL/converterJclMin/src/java/lang/Error.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index f7969390d95..00000000000 --- a/JCL/converterJclMin/src/java/lang/Exception.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 907abda50dc..00000000000 --- a/JCL/converterJclMin/src/java/lang/ExceptionInInitializerError.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index ff66ee6f1f0..00000000000 --- a/JCL/converterJclMin/src/java/lang/Float.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 0e7fb8025ff..00000000000 --- a/JCL/converterJclMin/src/java/lang/IllegalMonitorStateException.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7230956f644..00000000000 --- a/JCL/converterJclMin/src/java/lang/IndexOutOfBoundsException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8d2027efa8b..00000000000 --- a/JCL/converterJclMin/src/java/lang/Integer.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8bbd866439f..00000000000 --- a/JCL/converterJclMin/src/java/lang/InterruptedException.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 094fde461c7..00000000000 --- a/JCL/converterJclMin/src/java/lang/Long.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 51837194632..00000000000 --- a/JCL/converterJclMin/src/java/lang/Math.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index b6eefdc89eb..00000000000 --- a/JCL/converterJclMin/src/java/lang/NoSuchFieldError.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 8e18fa47836..00000000000 --- a/JCL/converterJclMin/src/java/lang/NullPointerException.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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. - */ - 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 deleted file mode 100644 index 602872f4585..00000000000 --- a/JCL/converterJclMin/src/java/lang/Number.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index db1be617e05..00000000000 --- a/JCL/converterJclMin/src/java/lang/NumberFormatException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7a501924c7d..00000000000 --- a/JCL/converterJclMin/src/java/lang/Object.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index cdbe130edd3..00000000000 --- a/JCL/converterJclMin/src/java/lang/ReflectiveOperationException.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index d37f3130d10..00000000000 --- a/JCL/converterJclMin/src/java/lang/Runnable.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index be85127b2ec..00000000000 --- a/JCL/converterJclMin/src/java/lang/RuntimeException.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e61f1368adf..00000000000 --- a/JCL/converterJclMin/src/java/lang/Short.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 219e3a0c5a4..00000000000 --- a/JCL/converterJclMin/src/java/lang/String.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index f77dd695b04..00000000000 --- a/JCL/converterJclMin/src/java/lang/StringBuffer.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a13acd2404d..00000000000 --- a/JCL/converterJclMin/src/java/lang/System.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 42ebfd75a12..00000000000 --- a/JCL/converterJclMin/src/java/lang/Throwable.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 72e9ca2becd..00000000000 --- a/JCL/converterJclMin/src/java/lang/Void.java +++ /dev/null @@ -1,13 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 4d163a8bd12..00000000000 --- a/JCL/converterJclMin/src/java/lang/ref/Reference.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9fe70bdafe3..00000000000 --- a/JCL/converterJclMin/src/java/lang/ref/ReferenceQueue.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a45438ab53e..00000000000 --- a/JCL/converterJclMin/src/java/lang/ref/WeakReference.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 887f4a7c4be..00000000000 --- a/JCL/converterJclMin/src/java/net/MalformedURLException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 93a29b63cf3..00000000000 --- a/JCL/converterJclMin/src/java/text/NumberFormat.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7e5e8b271fb..00000000000 --- a/JCL/converterJclMin/src/java/util/ArrayList.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a28dfe05b0e..00000000000 --- a/JCL/converterJclMin/src/java/util/Arrays.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e9e15fa0856..00000000000 --- a/JCL/converterJclMin/src/java/util/Collection.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index cb82830e3c6..00000000000 --- a/JCL/converterJclMin/src/java/util/Collections.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 71ce4fb5864..00000000000 --- a/JCL/converterJclMin/src/java/util/Enumeration.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 543d56694d4..00000000000 --- a/JCL/converterJclMin/src/java/util/HashMap.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index ca5ad6c4d94..00000000000 --- a/JCL/converterJclMin/src/java/util/Hashtable.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7d06d850475..00000000000 --- a/JCL/converterJclMin/src/java/util/Iterator.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 467cb7badb7..00000000000 --- a/JCL/converterJclMin/src/java/util/List.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index d591b3946ac..00000000000 --- a/JCL/converterJclMin/src/java/util/Locale.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c0ba203e8f5..00000000000 --- a/JCL/converterJclMin/src/java/util/Map.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index f5f7c87e82a..00000000000 --- a/JCL/converterJclMin/src/java/util/MissingResourceException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a049d80d09e..00000000000 --- a/JCL/converterJclMin/src/java/util/NoSuchElementException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 027b99f365d..00000000000 --- a/JCL/converterJclMin/src/java/util/ResourceBundle.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index ad017a2da26..00000000000 --- a/JCL/converterJclMin/src/java/util/Set.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 86214d85969..00000000000 --- a/JCL/converterJclMin/src/java/util/StringTokenizer.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index e26e51f7812..00000000000 --- a/JCL/converterJclMin/src/java/util/Vector.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7c82b06d8cc..00000000000 --- a/JCL/converterJclMin/src/java/util/zip/ZipEntry.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 56c853a2bce..00000000000 --- a/JCL/converterJclMin/src/java/util/zip/ZipFile.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fb8a2f01029..00000000000 --- a/JCL/converterJclMin1.5/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/JCL/converterJclMin1.5/.project b/JCL/converterJclMin1.5/.project deleted file mode 100644 index 058d2e0ee33..00000000000 --- a/JCL/converterJclMin1.5/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - converterJclMin1.5 - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/JCL/converterJclMin1.5/.settings/org.eclipse.core.resources.prefs b/JCL/converterJclMin1.5/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0203a..00000000000 --- a/JCL/converterJclMin1.5/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/JCL/converterJclMin1.5/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin1.5/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 272e3b91d2d..00000000000 --- a/JCL/converterJclMin1.5/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index b2fd6f7c24a..00000000000 --- a/JCL/converterJclMin1.5/src/java/awt/List.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index aa574a1930e..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/BufferedInputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3ab0e26fc52..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/BufferedOutputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 61122c1b2f4..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/BufferedWriter.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7f095dcbcb4..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/ByteArrayInputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8af40644cc3..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/ByteArrayOutputStream.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e0465e47fa9..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/File.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c51d1be33c8..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/FileInputStream.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c643bf9c415..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/FileOutputStream.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 667a1888694..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/FileWriter.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a73f64275e4..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/IOException.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8aa222e9020..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/InputStream.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a9012a34b8a..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/InputStreamReader.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c95111adfcc..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/InterruptedIOException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8d9756265ba..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/OutputStream.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 503f080425d..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/PrintStream.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index ec7e885e07e..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/PrintWriter.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bb74ec22fa7..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/Reader.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e33731bec8f..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/Serializable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 84631fdee0d..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/StringWriter.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 916b5ccdcd2..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/UnsupportedEncodingException.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8a198ae50ca..00000000000 --- a/JCL/converterJclMin1.5/src/java/io/Writer.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 063baae8d82..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ArithmeticException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index af436866fea..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ArrayIndexOutOfBoundsException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3acb2e6ec3a..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/AssertionError.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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. - */ - 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 deleted file mode 100644 index 198c9287b17..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Boolean.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 75c71a1c00a..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Byte.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 337c148689e..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Character.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7e82f809c85..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Class.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * 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; - } - - public native Class 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 deleted file mode 100644 index 51bbbd21252..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ClassCastException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 838399474eb..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ClassNotFoundException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 2074efbf9e5..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/CloneNotSupportedException.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bc1cb76200b..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Cloneable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fae6b35eb20..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Comparable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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(T o); -} diff --git a/JCL/converterJclMin1.5/src/java/lang/Deprecated.java b/JCL/converterJclMin1.5/src/java/lang/Deprecated.java deleted file mode 100644 index b0650934723..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Deprecated.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 18312efacb7..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Double.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 13aba400553..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Enum.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * 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> implements Comparable, - 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 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 deleted file mode 100644 index fc4766d7318..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Error.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index f7969390d95..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Exception.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 907abda50dc..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ExceptionInInitializerError.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fd5313bde3c..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Float.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 4b3861fa0aa..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/IllegalAccessException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 0e7fb8025ff..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/IllegalMonitorStateException.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7230956f644..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/IndexOutOfBoundsException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c6b5283aa90..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/InstantiationException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 5cdeb3415d6..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Integer.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 8bbd866439f..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/InterruptedException.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9e1be1a38c0..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Iterable.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - Iterator iterator(); -} diff --git a/JCL/converterJclMin1.5/src/java/lang/Long.java b/JCL/converterJclMin1.5/src/java/lang/Long.java deleted file mode 100644 index f5f7357ac13..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Long.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * 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 { - 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 deleted file mode 100644 index 51837194632..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Math.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index b6eefdc89eb..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/NoSuchFieldError.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 8e18fa47836..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/NullPointerException.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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. - */ - 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 deleted file mode 100644 index c8ccd0833ad..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Number.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index db1be617e05..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/NumberFormatException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9ed67c1b019..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Object.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 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 deleted file mode 100644 index e30eba7b6df..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Override.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index d37f3130d10..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Runnable.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index be85127b2ec..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/RuntimeException.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7c36571d45b..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Short.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 27cd154400a..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/String.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index f77dd695b04..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/StringBuffer.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7aa7548f57d..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/SuppressWarnings.java +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index a13acd2404d..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/System.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 42ebfd75a12..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Throwable.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 72e9ca2becd..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/Void.java +++ /dev/null @@ -1,13 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index f6dbed69176..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/annotation/Annotation.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 annotationType(); -} diff --git a/JCL/converterJclMin1.5/src/java/lang/annotation/ElementType.java b/JCL/converterJclMin1.5/src/java/lang/annotation/ElementType.java deleted file mode 100644 index 62caf2132c5..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/annotation/ElementType.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index b51bfad6a70..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/annotation/Retention.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index cbd3bfcc5cb..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/annotation/RetentionPolicy.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bdfbeebd396..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/annotation/Target.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 4d163a8bd12..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ref/Reference.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9fe70bdafe3..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ref/ReferenceQueue.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a45438ab53e..00000000000 --- a/JCL/converterJclMin1.5/src/java/lang/ref/WeakReference.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 887f4a7c4be..00000000000 --- a/JCL/converterJclMin1.5/src/java/net/MalformedURLException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 93a29b63cf3..00000000000 --- a/JCL/converterJclMin1.5/src/java/text/NumberFormat.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 89e6b86afe0..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/AbstractCollection.java +++ /dev/null @@ -1,4 +0,0 @@ -package java.util; - -public abstract class AbstractCollection implements Collection { -} diff --git a/JCL/converterJclMin1.5/src/java/util/AbstractList.java b/JCL/converterJclMin1.5/src/java/util/AbstractList.java deleted file mode 100644 index ab84c73f8a6..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/AbstractList.java +++ /dev/null @@ -1,4 +0,0 @@ -package java.util; - -public abstract class AbstractList extends AbstractCollection implements List { -} \ 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 deleted file mode 100644 index c93ad94dad9..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/AbstractSet.java +++ /dev/null @@ -1,4 +0,0 @@ -package java.util; - -public abstract class AbstractSet extends AbstractCollection implements Set { -} \ 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 deleted file mode 100644 index 08693f0aa6b..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/ArrayList.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 extends AbstractList implements List, 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 iterator() { - return null; - } - public boolean addAll(Collection 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 deleted file mode 100644 index 758e7004e9e..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Arrays.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 List 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 deleted file mode 100644 index 4415a6b5086..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Collection.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 extends Iterable { - public Iterator iterator(); - public int size(); - public T get(int index); - public boolean addAll(Collection 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 deleted file mode 100644 index fa2220d3ce3..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Collections.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 list) { - } - - public static final Map emptyMap() { - return null; - } - public static final List emptyList() { - return null; - } -} diff --git a/JCL/converterJclMin1.5/src/java/util/Enumeration.java b/JCL/converterJclMin1.5/src/java/util/Enumeration.java deleted file mode 100644 index 71ce4fb5864..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Enumeration.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index d22a3176c53..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/HashMap.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * 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 implements Map { - 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 keySet() { - return null; - } - public Collection values() { - return null; - } -} diff --git a/JCL/converterJclMin1.5/src/java/util/HashSet.java b/JCL/converterJclMin1.5/src/java/util/HashSet.java deleted file mode 100644 index 6e3afcc8b31..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/HashSet.java +++ /dev/null @@ -1,22 +0,0 @@ -package java.util; - -import java.io.Serializable; - -public class HashSet extends AbstractSet implements Set, Cloneable, Serializable { - private static final long serialVersionUID = 4886489800857586866L; - public Iterator iterator() { - return null; - } - public boolean addAll(Collection 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 deleted file mode 100644 index fc2c5eb10f5..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Hashtable.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 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 deleted file mode 100644 index 1356cd55a2e..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Iterator.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 8039b147431..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/List.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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(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 deleted file mode 100644 index d591b3946ac..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Locale.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fc06d3ceceb..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Map.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * 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 { - - 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 deleted file mode 100644 index f5f7c87e82a..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/MissingResourceException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a049d80d09e..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/NoSuchElementException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 78870df3a5b..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/RandomAccess.java +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 027b99f365d..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/ResourceBundle.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 64284b40a8d..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Set.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 extends Collection { - public Iterator iterator(); -} diff --git a/JCL/converterJclMin1.5/src/java/util/StringTokenizer.java b/JCL/converterJclMin1.5/src/java/util/StringTokenizer.java deleted file mode 100644 index 86214d85969..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/StringTokenizer.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 7f8630a58c4..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/Vector.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * 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 { - - 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 deleted file mode 100644 index 7c82b06d8cc..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/zip/ZipEntry.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 56c853a2bce..00000000000 --- a/JCL/converterJclMin1.5/src/java/util/zip/ZipFile.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e7bea6f88c2..00000000000 --- a/JCL/converterJclMin1.5/src/p1/p2/Annot.java +++ /dev/null @@ -1,8 +0,0 @@ -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 deleted file mode 100644 index 664daea9a88..00000000000 --- a/JCL/converterJclMin1.5/src/p1/p2/MyEnum.java +++ /dev/null @@ -1,17 +0,0 @@ -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 deleted file mode 100644 index f07c0b66bc9..00000000000 --- a/JCL/converterJclMin1.5/src/p1/p2/MyEnum2.java +++ /dev/null @@ -1,7 +0,0 @@ -package p1.p2; - -public enum MyEnum2 { - - A, B, C, D; - -} diff --git a/JCL/converterJclMin1.7/.classpath b/JCL/converterJclMin1.7/.classpath deleted file mode 100644 index 51a8bbad896..00000000000 --- a/JCL/converterJclMin1.7/.classpath +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/JCL/converterJclMin1.7/.project b/JCL/converterJclMin1.7/.project deleted file mode 100644 index 74f00377023..00000000000 --- a/JCL/converterJclMin1.7/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - converterJclMin1.7 - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/JCL/converterJclMin1.7/.settings/org.eclipse.core.resources.prefs b/JCL/converterJclMin1.7/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0203a..00000000000 --- a/JCL/converterJclMin1.7/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/JCL/converterJclMin1.7/.settings/org.eclipse.jdt.core.prefs b/JCL/converterJclMin1.7/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index ec1937b3f30..00000000000 --- a/JCL/converterJclMin1.7/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index b2fd6f7c24a..00000000000 --- a/JCL/converterJclMin1.7/src/java/awt/List.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index aa574a1930e..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/BufferedInputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3ab0e26fc52..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/BufferedOutputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 61122c1b2f4..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/BufferedWriter.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7f095dcbcb4..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/ByteArrayInputStream.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8af40644cc3..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/ByteArrayOutputStream.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e0465e47fa9..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/File.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c51d1be33c8..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/FileInputStream.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c643bf9c415..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/FileOutputStream.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 667a1888694..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/FileWriter.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e9dabf8df2b..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/IOException.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8aa222e9020..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/InputStream.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a9012a34b8a..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/InputStreamReader.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index c727ca292d2..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/InterruptedIOException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8d9756265ba..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/OutputStream.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 503f080425d..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/PrintStream.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index ec7e885e07e..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/PrintWriter.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bb74ec22fa7..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/Reader.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index e33731bec8f..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/Serializable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 84631fdee0d..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/StringWriter.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 6eb4f037848..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/UnsupportedEncodingException.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 8a198ae50ca..00000000000 --- a/JCL/converterJclMin1.7/src/java/io/Writer.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index afe937b4cd4..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ArithmeticException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3838011898b..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ArrayIndexOutOfBoundsException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index cd8e8b1acca..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/AssertionError.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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. - */ - 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 deleted file mode 100644 index 198c9287b17..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Boolean.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 75c71a1c00a..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Byte.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 337c148689e..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Character.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7e82f809c85..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Class.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * 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; - } - - public native Class 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 deleted file mode 100644 index 72d68101399..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ClassCastException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 46742b7d4a7..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ClassNotFoundException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 5fb63b9ea17..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/CloneNotSupportedException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bc1cb76200b..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Cloneable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fae6b35eb20..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Comparable.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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(T o); -} diff --git a/JCL/converterJclMin1.7/src/java/lang/Deprecated.java b/JCL/converterJclMin1.7/src/java/lang/Deprecated.java deleted file mode 100644 index b0650934723..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Deprecated.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 18312efacb7..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Double.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 8e0a59b70e2..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Enum.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * 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> implements Comparable, - 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 getDeclaringClass() { - return null; - } - public static > T valueOf(Class enumClass, - String name) { - 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 deleted file mode 100644 index 5b9b5435fd9..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Error.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9580b40d767..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Exception.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 2cf1e21702c..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ExceptionInInitializerError.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fd5313bde3c..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Float.java +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index d07dbcff056..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/IllegalAccessException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 38ea0bfdc03..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/IllegalMonitorStateException.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 32bbeb87471..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/IndexOutOfBoundsException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index cccda2332a0..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/InstantiationException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 5cdeb3415d6..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Integer.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 52b67124d91..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/InterruptedException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9e1be1a38c0..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Iterable.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - Iterator iterator(); -} diff --git a/JCL/converterJclMin1.7/src/java/lang/Long.java b/JCL/converterJclMin1.7/src/java/lang/Long.java deleted file mode 100644 index f5f7357ac13..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Long.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * 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 { - 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 deleted file mode 100644 index 51837194632..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Math.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a516033612d..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/NoSuchMethodException.java +++ /dev/null @@ -1,28 +0,0 @@ -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 NoSuchMethodException without a detail message. - */ - public NoSuchMethodException() { - super(); - } - - /** - * Constructs a NoSuchMethodException 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 deleted file mode 100644 index a9fbc06ec66..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/NullPointerException.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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. - */ - 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 deleted file mode 100644 index c8ccd0833ad..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Number.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index eeb7eb737c3..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/NumberFormatException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9ed67c1b019..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Object.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 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 deleted file mode 100644 index e30eba7b6df..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Override.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 46df5a4c814..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ReflectiveOperationException.java +++ /dev/null @@ -1,13 +0,0 @@ -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 deleted file mode 100644 index d37f3130d10..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Runnable.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 6018b826143..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/RuntimeException.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 765dc3f57e7..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/SafeVarargs.java +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index 7c36571d45b..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Short.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 27cd154400a..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/String.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index f77dd695b04..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/StringBuffer.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 7aa7548f57d..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/SuppressWarnings.java +++ /dev/null @@ -1,11 +0,0 @@ -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 deleted file mode 100644 index a13acd2404d..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/System.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 55be032fdf5..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Throwable.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 72e9ca2becd..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/Void.java +++ /dev/null @@ -1,13 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index f6dbed69176..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/annotation/Annotation.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 annotationType(); -} diff --git a/JCL/converterJclMin1.7/src/java/lang/annotation/Documented.java b/JCL/converterJclMin1.7/src/java/lang/annotation/Documented.java deleted file mode 100644 index 1826f297a15..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/annotation/Documented.java +++ /dev/null @@ -1,10 +0,0 @@ -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 deleted file mode 100644 index 62caf2132c5..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/annotation/ElementType.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index b51bfad6a70..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/annotation/Retention.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index cbd3bfcc5cb..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/annotation/RetentionPolicy.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index bdfbeebd396..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/annotation/Target.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index b702132820d..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandle.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index f40dc8200bc..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/invoke/MethodHandles.java +++ /dev/null @@ -1,21 +0,0 @@ -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 deleted file mode 100644 index 067d5f9db0f..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/invoke/MethodType.java +++ /dev/null @@ -1,16 +0,0 @@ -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 deleted file mode 100644 index 4d163a8bd12..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ref/Reference.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 9fe70bdafe3..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ref/ReferenceQueue.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index a45438ab53e..00000000000 --- a/JCL/converterJclMin1.7/src/java/lang/ref/WeakReference.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 3c31ec74fea..00000000000 --- a/JCL/converterJclMin1.7/src/java/net/MalformedURLException.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 93a29b63cf3..00000000000 --- a/JCL/converterJclMin1.7/src/java/text/NumberFormat.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 89e6b86afe0..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/AbstractCollection.java +++ /dev/null @@ -1,4 +0,0 @@ -package java.util; - -public abstract class AbstractCollection implements Collection { -} diff --git a/JCL/converterJclMin1.7/src/java/util/AbstractList.java b/JCL/converterJclMin1.7/src/java/util/AbstractList.java deleted file mode 100644 index ab84c73f8a6..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/AbstractList.java +++ /dev/null @@ -1,4 +0,0 @@ -package java.util; - -public abstract class AbstractList extends AbstractCollection implements List { -} \ 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 deleted file mode 100644 index c93ad94dad9..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/AbstractSet.java +++ /dev/null @@ -1,4 +0,0 @@ -package java.util; - -public abstract class AbstractSet extends AbstractCollection implements Set { -} \ 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 deleted file mode 100644 index 08693f0aa6b..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/ArrayList.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 extends AbstractList implements List, 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 iterator() { - return null; - } - public boolean addAll(Collection 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 deleted file mode 100644 index 3fe9c6f924c..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Arrays.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 List 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 deleted file mode 100644 index 4415a6b5086..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Collection.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 extends Iterable { - public Iterator iterator(); - public int size(); - public T get(int index); - public boolean addAll(Collection 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 deleted file mode 100644 index fa2220d3ce3..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Collections.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 list) { - } - - public static final Map emptyMap() { - return null; - } - public static final List emptyList() { - return null; - } -} diff --git a/JCL/converterJclMin1.7/src/java/util/Enumeration.java b/JCL/converterJclMin1.7/src/java/util/Enumeration.java deleted file mode 100644 index 71ce4fb5864..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Enumeration.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index d22a3176c53..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/HashMap.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * 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 implements Map { - 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 keySet() { - return null; - } - public Collection values() { - return null; - } -} diff --git a/JCL/converterJclMin1.7/src/java/util/HashSet.java b/JCL/converterJclMin1.7/src/java/util/HashSet.java deleted file mode 100644 index 6e3afcc8b31..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/HashSet.java +++ /dev/null @@ -1,22 +0,0 @@ -package java.util; - -import java.io.Serializable; - -public class HashSet extends AbstractSet implements Set, Cloneable, Serializable { - private static final long serialVersionUID = 4886489800857586866L; - public Iterator iterator() { - return null; - } - public boolean addAll(Collection 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 deleted file mode 100644 index fc2c5eb10f5..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Hashtable.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 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 deleted file mode 100644 index 1356cd55a2e..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Iterator.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 { - 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 deleted file mode 100644 index 8039b147431..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/List.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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(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 deleted file mode 100644 index d591b3946ac..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Locale.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index fc06d3ceceb..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Map.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * 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 { - - 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 deleted file mode 100644 index 3f512497f5c..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/MissingResourceException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 855fa6ae99f..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/NoSuchElementException.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 78870df3a5b..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/RandomAccess.java +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 027b99f365d..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/ResourceBundle.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 64284b40a8d..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Set.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 extends Collection { - public Iterator iterator(); -} diff --git a/JCL/converterJclMin1.7/src/java/util/StringTokenizer.java b/JCL/converterJclMin1.7/src/java/util/StringTokenizer.java deleted file mode 100644 index 86214d85969..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/StringTokenizer.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * 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 deleted file mode 100644 index 7f8630a58c4..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/Vector.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * 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 { - - 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 deleted file mode 100644 index 7c82b06d8cc..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/zip/ZipEntry.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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 deleted file mode 100644 index 56c853a2bce..00000000000 --- a/JCL/converterJclMin1.7/src/java/util/zip/ZipFile.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which 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/src/java/lang/NoSuchFieldError.java b/JCL/converterJclMin1.8/src/java/lang/NoSuchFieldError.java new file mode 100644 index 00000000000..fd901dc0937 --- /dev/null +++ b/JCL/converterJclMin1.8/src/java/lang/NoSuchFieldError.java @@ -0,0 +1,15 @@ +package java.lang; + +public +class NoSuchFieldError extends IncompatibleClassChangeError { + + static final long serialVersionUID = 1L; + + public NoSuchFieldError() { + super(); + } + + public NoSuchFieldError(String s) { + super(s); + } +} diff --git a/JCL/jclMin23/.settings/org.eclipse.jdt.core.prefs b/JCL/jclMin23/.settings/org.eclipse.jdt.core.prefs index d8fc6e5605f..d927de6addc 100644 --- a/JCL/jclMin23/.settings/org.eclipse.jdt.core.prefs +++ b/JCL/jclMin23/.settings/org.eclipse.jdt.core.prefs @@ -1,4 +1,17 @@ eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.annotationPath.allLocations=disabled +org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnull.secondary= +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary= +org.eclipse.jdt.core.compiler.annotation.notowning=org.eclipse.jdt.annotation.NotOwning +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullable.secondary= +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.annotation.owning=org.eclipse.jdt.annotation.Owning +org.eclipse.jdt.core.compiler.annotation.resourceanalysis=disabled org.eclipse.jdt.core.compiler.codegen.methodParameters=generate org.eclipse.jdt.core.compiler.codegen.targetPlatform=23 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve @@ -6,7 +19,103 @@ org.eclipse.jdt.core.compiler.compliance=23 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.APILeak=warning +org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated=info +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompatibleOwningContract=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.insufficientResourceAnalysis=warning +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning +org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed=info +org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning +org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled +org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLambdaParameter=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning org.eclipse.jdt.core.compiler.release=enabled org.eclipse.jdt.core.compiler.source=23 diff --git a/JCL/jclMin23/src/java/io/InputStream.java b/JCL/jclMin23/src/java/io/InputStream.java index 12017e76a4b..ff133a644a7 100644 --- a/JCL/jclMin23/src/java/io/InputStream.java +++ b/JCL/jclMin23/src/java/io/InputStream.java @@ -1,5 +1,5 @@ package java.io; -public class InputStream { - +public class InputStream implements AutoCloseable { + public void close() {} } diff --git a/JCL/jclMin23/src/java/lang/AssertionError.java b/JCL/jclMin23/src/java/lang/AssertionError.java new file mode 100644 index 00000000000..c2032d58df8 --- /dev/null +++ b/JCL/jclMin23/src/java/lang/AssertionError.java @@ -0,0 +1,18 @@ +package java.lang; + +public class AssertionError extends Error { + + static final long serialVersionUID = 1L; + + public AssertionError(java.lang.String s) { + super(s); + } + + public AssertionError(java.lang.String s, java.lang.Throwable cause) { + super(s, cause); + } + + public AssertionError() { + } + +} diff --git a/JCL/jclMin23/src/java/lang/AutoCloseable.java b/JCL/jclMin23/src/java/lang/AutoCloseable.java new file mode 100644 index 00000000000..46c293d3be9 --- /dev/null +++ b/JCL/jclMin23/src/java/lang/AutoCloseable.java @@ -0,0 +1,4 @@ +package java.lang; +public interface AutoCloseable { + void close() throws Exception; +} \ No newline at end of file diff --git a/JCL/jclMin23/src/java/lang/IncompatibleClassChangeError.java b/JCL/jclMin23/src/java/lang/IncompatibleClassChangeError.java index b8e171ea5b6..eaa29701a53 100644 --- a/JCL/jclMin23/src/java/lang/IncompatibleClassChangeError.java +++ b/JCL/jclMin23/src/java/lang/IncompatibleClassChangeError.java @@ -3,6 +3,8 @@ public class IncompatibleClassChangeError extends LinkageError { + static final long serialVersionUID = 1L; + public IncompatibleClassChangeError () { super(); } diff --git a/JCL/jclMin23/src/java/lang/LinkageError.java b/JCL/jclMin23/src/java/lang/LinkageError.java index 72ee8ffbd11..26dc1290549 100644 --- a/JCL/jclMin23/src/java/lang/LinkageError.java +++ b/JCL/jclMin23/src/java/lang/LinkageError.java @@ -3,7 +3,9 @@ public class LinkageError extends Error { - public LinkageError() { + static final long serialVersionUID = 1L; + + public LinkageError() { super(); } diff --git a/JCL/jclMin23/src/java/lang/NoClassDefFoundError.java b/JCL/jclMin23/src/java/lang/NoClassDefFoundError.java index 80b2dfed6d6..790f4e5b4ed 100644 --- a/JCL/jclMin23/src/java/lang/NoClassDefFoundError.java +++ b/JCL/jclMin23/src/java/lang/NoClassDefFoundError.java @@ -3,6 +3,8 @@ public class NoClassDefFoundError extends LinkageError { + static final long serialVersionUID = 1L; + public NoClassDefFoundError() { super(); } diff --git a/JCL/jclMin23/src/java/lang/NoSuchFieldError.java b/JCL/jclMin23/src/java/lang/NoSuchFieldError.java index 0ce8c8ebaf4..db00e4f6cab 100644 --- a/JCL/jclMin23/src/java/lang/NoSuchFieldError.java +++ b/JCL/jclMin23/src/java/lang/NoSuchFieldError.java @@ -3,6 +3,8 @@ public class NoSuchFieldError extends IncompatibleClassChangeError { + static final long serialVersionUID = 1L; + public NoSuchFieldError() { super(); } diff --git a/JCL/jclMin23/src/java/lang/invoke/LambdaMetafactory.java b/JCL/jclMin23/src/java/lang/invoke/LambdaMetafactory.java new file mode 100644 index 00000000000..b8d89314345 --- /dev/null +++ b/JCL/jclMin23/src/java/lang/invoke/LambdaMetafactory.java @@ -0,0 +1,3 @@ +package java.lang.invoke; +public class LambdaMetafactory { +} \ No newline at end of file diff --git a/org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF b/org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF index 1b6d60b40bb..3b5a7f5d844 100644 --- a/org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF +++ b/org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jdt.apt.pluggable.tests;singleton:=true -Bundle-Version: 3.6.600.qualifier +Bundle-Version: 3.6.700.qualifier Bundle-Activator: org.eclipse.jdt.apt.pluggable.tests.Apt6TestsPlugin Bundle-Localization: plugin Require-Bundle: org.junit, diff --git a/org.eclipse.jdt.apt.pluggable.tests/pom.xml b/org.eclipse.jdt.apt.pluggable.tests/pom.xml index a4a3f376489..85e08f750f7 100644 --- a/org.eclipse.jdt.apt.pluggable.tests/pom.xml +++ b/org.eclipse.jdt.apt.pluggable.tests/pom.xml @@ -19,7 +19,7 @@ ../tests-pom/ org.eclipse.jdt.apt.pluggable.tests - 3.6.600-SNAPSHOT + 3.6.700-SNAPSHOT eclipse-test-plugin ${project.artifactId} diff --git a/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/PerformanceTests.java b/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/PerformanceTests.java index 3f57d9e75aa..872112cc99b 100644 --- a/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/PerformanceTests.java +++ b/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/PerformanceTests.java @@ -153,43 +153,32 @@ public void testBoringFiles() throws Exception Runtime run = Runtime.getRuntime(); - long start; + long startNanos; if (INCLUDE_APT_DISABLED) { AptConfig.setEnabled(jproj, false); - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); run.exec(CMD_START_CPU_PROFILING).waitFor(); fullBuild( project.getFullPath() ); - if (VERBOSE) - System.out.println("APT disabled: full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + if (VERBOSE) { + System.out + .println("APT disabled: full build took " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); + } run.exec(CMD_PERF_SNAPSHOT).waitFor(); run.exec(CMD_STOP_CPU_PROFILING).waitFor(); expectingNoProblems(); - -// System.gc(); -// Thread.sleep(1000); -// -// AptConfig.setEnabled(jproj, false); -// start = System.currentTimeMillis(); -// fullBuild( project.getFullPath() ); -// if (VERBOSE) { -// System.out.println("full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); -// System.out.println("Taking heap snapshot"); -// } -// run.exec(CMD_HEAP_SNAPSHOT).waitFor(); -// expectingNoProblems(); } System.gc(); Thread.sleep(1000); AptConfig.setEnabled(jproj, true); - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); if (VERBOSE) System.out.println("APT enabled: starting full build"); fullBuild( project.getFullPath() ); if (VERBOSE) { - System.out.println("full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + System.out.println("full build took " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); System.out.println("Taking heap snapshot"); } run.exec(CMD_HEAP_SNAPSHOT).waitFor(); @@ -199,13 +188,14 @@ public void testBoringFiles() throws Exception Thread.sleep(1000); AptConfig.setEnabled(jproj, true); - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); if (VERBOSE) System.out.println("APT enabled: starting full build"); run.exec(CMD_START_CPU_PROFILING).waitFor(); fullBuild( project.getFullPath() ); - if (VERBOSE) - System.out.println("full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + if (VERBOSE) { + System.out.println("full build took " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); + } run.exec(CMD_PERF_SNAPSHOT).waitFor(); run.exec(CMD_STOP_CPU_PROFILING).waitFor(); expectingNoProblems(); @@ -214,13 +204,14 @@ public void testBoringFiles() throws Exception Thread.sleep(1000); AptConfig.setEnabled(jproj, true); - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); if (VERBOSE) System.out.println("APT enabled: starting full build"); run.exec(CMD_START_CPU_PROFILING).waitFor(); fullBuild( project.getFullPath() ); - if (VERBOSE) - System.out.println("full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + if (VERBOSE) { + System.out.println("full build took " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); + } run.exec(CMD_PERF_SNAPSHOT).waitFor(); run.exec(CMD_STOP_CPU_PROFILING).waitFor(); expectingNoProblems(); @@ -247,63 +238,34 @@ public void _testInterestingFilesWithJ6() throws Exception Runtime run = Runtime.getRuntime(); - long start; - if (INCLUDE_APT_DISABLED) { AptConfig.setEnabled(jproj, false); - start = System.currentTimeMillis(); + long startNanos = System.nanoTime(); run.exec(CMD_START_CPU_PROFILING).waitFor(); fullBuild( project.getFullPath() ); if (VERBOSE) - System.out.println("APT disabled: full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + System.out.println( + "APT disabled: full build took " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); run.exec(CMD_PERF_SNAPSHOT).waitFor(); run.exec(CMD_STOP_CPU_PROFILING).waitFor(); expectingNoProblems(); - -// System.gc(); -// Thread.sleep(1000); -// -// AptConfig.setEnabled(jproj, false); -// start = System.currentTimeMillis(); -// run.exec(CMD_START_CPU_PROFILING).waitFor(); -// fullBuild( project.getFullPath() ); -// if (VERBOSE) -// System.out.println("APT disabled: full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); -// run.exec(CMD_PERF_SNAPSHOT).waitFor(); -// run.exec(CMD_STOP_CPU_PROFILING).waitFor(); -// expectingNoProblems(); } System.gc(); Thread.sleep(1000); AptConfig.setEnabled(jproj, true); - start = System.currentTimeMillis(); + long startNanos = System.nanoTime(); if (VERBOSE) System.out.println("APT enabled: starting full build"); run.exec(CMD_START_CPU_PROFILING).waitFor(); fullBuild( project.getFullPath() ); if (VERBOSE) - System.out.println("full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + System.out.println("full build took " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); run.exec(CMD_PERF_SNAPSHOT).waitFor(); run.exec(CMD_STOP_CPU_PROFILING).waitFor(); expectingNoProblems(); -// System.gc(); -// Thread.sleep(1000); -// -// AptConfig.setEnabled(jproj, true); -// start = System.currentTimeMillis(); -// if (VERBOSE) -// System.out.println("APT enabled: starting full build"); -// run.exec(CMD_START_CPU_PROFILING).waitFor(); -// fullBuild( project.getFullPath() ); -// if (VERBOSE) -// System.out.println("full build took " + ((System.currentTimeMillis() - start)/1000L) + " sec"); -// run.exec(CMD_PERF_SNAPSHOT).waitFor(); -// run.exec(CMD_STOP_CPU_PROFILING).waitFor(); -// expectingNoProblems(); - // Now delete the project! if (VERBOSE) System.out.println("Deleting workspace"); @@ -329,10 +291,10 @@ public void _testGeneratingLotsOfFiles() throws Exception // Set some per-project preferences AptConfig.setEnabled(jproj, true); - long start = System.currentTimeMillis(); - fullBuild( project.getFullPath() ); + long startNanos = System.nanoTime(); + fullBuild(project.getFullPath()); if (VERBOSE) - System.out.println("Done with build after " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + System.out.println("Done with build after " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); expectingNoProblems(); diff --git a/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/ScalingTests.java b/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/ScalingTests.java index dbfc4100b5b..96a27ce5f72 100644 --- a/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/ScalingTests.java +++ b/org.eclipse.jdt.apt.pluggable.tests/src/org/eclipse/jdt/apt/pluggable/tests/ScalingTests.java @@ -85,10 +85,12 @@ public void testGeneratingLotsOfFiles() throws Exception // Set some per-project preferences AptConfig.setEnabled(jproj, true); - long start = System.currentTimeMillis(); + long startNanos = System.nanoTime(); fullBuild( project.getFullPath() ); - if (VERBOSE) - System.out.println("Done with build after " + ((System.currentTimeMillis() - start)/1000L) + " sec"); + if (VERBOSE) { + System.out.println( + "Done with build after " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); + } expectingNoProblems(); diff --git a/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF b/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF index 5fa3f3bff43..7c3b0f08255 100644 --- a/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF +++ b/org.eclipse.jdt.apt.tests/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jdt.apt.tests; singleton:=true -Bundle-Version: 3.6.600.qualifier +Bundle-Version: 3.6.700.qualifier Bundle-ClassPath: apt.jar, aptext.jar, . diff --git a/org.eclipse.jdt.apt.tests/pom.xml b/org.eclipse.jdt.apt.tests/pom.xml index 6204335e33b..b1a4674e146 100644 --- a/org.eclipse.jdt.apt.tests/pom.xml +++ b/org.eclipse.jdt.apt.tests/pom.xml @@ -19,7 +19,7 @@ ../tests-pom/ org.eclipse.jdt.apt.tests - 3.6.600-SNAPSHOT + 3.6.700-SNAPSHOT eclipse-test-plugin diff --git a/org.eclipse.jdt.apt.tests/src-annotations/org/eclipse/jdt/apt/tests/annotations/pause/PauseAnnotationProcessor.java b/org.eclipse.jdt.apt.tests/src-annotations/org/eclipse/jdt/apt/tests/annotations/pause/PauseAnnotationProcessor.java index 5bbb84b4790..a92b3848607 100644 --- a/org.eclipse.jdt.apt.tests/src-annotations/org/eclipse/jdt/apt/tests/annotations/pause/PauseAnnotationProcessor.java +++ b/org.eclipse.jdt.apt.tests/src-annotations/org/eclipse/jdt/apt/tests/annotations/pause/PauseAnnotationProcessor.java @@ -44,14 +44,13 @@ public void process() { Collection annotatedDecls = _env.getDeclarationsAnnotatedWith(_annotationDecl); for (Declaration decl : annotatedDecls) { Pause a = decl.getAnnotation(Pause.class); - int pause = a.value(); - System.out.println(phase + " pausing for " + pause + " to process " + decl.getSimpleName() + "..."); + int pauseMs = a.value(); + System.out.println(phase + " pausing for " + pauseMs + " to process " + decl.getSimpleName() + "..."); // busy sleep - long end = System.currentTimeMillis() + pause; - while (System.currentTimeMillis() < end) - for (int i = 0; i < 100000; ++i) { - /* pausing */ - } + long timeoutNanos = System.nanoTime() + pauseMs * 1_000_000L; + while (System.nanoTime() < timeoutNanos) { + Thread.onSpinWait(); + } System.out.println(phase + " finished pausing"); } } diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/APTTestBase.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/APTTestBase.java index d2c68903c3a..afe34ce3ef0 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/APTTestBase.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/APTTestBase.java @@ -365,22 +365,4 @@ protected void expectingSpecificProblemsFor(IPath root, ExpectedProblem[] proble protected void expectingOnlySpecificProblemFor(IPath root, ExpectedProblem problem) { expectingOnlySpecificProblemsFor(root, new ExpectedProblem[] { problem }); } - - protected static void sleep( long millis ) - { - long end = System.currentTimeMillis() + millis; - while ( millis > 0 ) - { - try - { - Thread.sleep( millis ); - } - catch ( InterruptedException ie ) - {} - millis = end - System.currentTimeMillis(); - } - } - - - } diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/AptBuilderTests.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/AptBuilderTests.java index 011add3e075..a112fe4a841 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/AptBuilderTests.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/AptBuilderTests.java @@ -502,7 +502,7 @@ public void testDeletedParentFile() throws Exception TestUtil.deleteFile(p1a1Path); // sleep to let the resource-change event fire - sleep( 1000 ); + Util.waitAtLeast(1000); incrementalBuild( project.getFullPath() ); @@ -513,7 +513,7 @@ public void testDeletedParentFile() throws Exception // sleep to let the resource-change event fire // TODO: Is there a more reliable, consistent, and efficient way to wait? - sleep( 1000 ); + Util.waitAtLeast(1000); incrementalBuild( project.getFullPath() ); expectingOnlyProblemsFor( p1bPath ); diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/PerfTests.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/PerfTests.java index e1c93ae9d85..cc73ffbdb6b 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/PerfTests.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/PerfTests.java @@ -142,9 +142,9 @@ public void testBuilding() throws Throwable { assertNoUnexpectedProblems(); System.out.println("Performing full build without apt..."); - long start = System.currentTimeMillis(); + long startNanos = System.nanoTime(); proj.build(IncrementalProjectBuilder.FULL_BUILD, null); - long totalWithoutAPT = System.currentTimeMillis() - start; + long totalWithoutAPT = (System.nanoTime() - startNanos) / 1_000_000L; System.out.println("Completed full build without APT in " + totalWithoutAPT + "ms."); assertNoUnexpectedProblems(); @@ -156,9 +156,9 @@ public void testBuilding() throws Throwable { assertNoUnexpectedProblems(); System.out.println("Performing full build with apt..."); - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); proj.build(IncrementalProjectBuilder.FULL_BUILD, null); - long totalWithAPT = System.currentTimeMillis() - start; + long totalWithAPT = (System.nanoTime() - startNanos) / 1_000_000L; System.out.println("Completed full build with APT in " + totalWithAPT + "ms."); assertNoUnexpectedProblems(); diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ScalingTests.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ScalingTests.java index aa8dfebb06d..2817963a0df 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ScalingTests.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/ScalingTests.java @@ -98,11 +98,11 @@ public void testGeneratingLotsOfFiles() throws Exception IJavaProject jproj = env.getJavaProject( projName ); AptConfig.setEnabled(jproj, true); - long start = System.currentTimeMillis(); + long startNanos = System.nanoTime(); fullBuild( project.getFullPath() ); - if (VERBOSE) - System.out.println("Done with build after " + ((System.currentTimeMillis() - start)/1000L) + " sec"); - + if (VERBOSE) { + System.out.println("Done with build after " + ((System.nanoTime() - startNanos) / 1_000_000L) + " ms"); + } expectingNoProblems(); IPath projPath = jproj.getProject().getLocation(); diff --git a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/StarProcessorTests.java b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/StarProcessorTests.java index 9bc933e392e..a4780246f15 100644 --- a/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/StarProcessorTests.java +++ b/org.eclipse.jdt.apt.tests/src/org/eclipse/jdt/apt/tests/StarProcessorTests.java @@ -500,7 +500,7 @@ public void testDeletedParentFile() throws Exception TestUtil.deleteFile(p1a1Path); // sleep to let the resource-change event fire - sleep( 1000 ); + Util.waitAtLeast(1000); incrementalBuild( project.getFullPath() ); @@ -511,7 +511,7 @@ public void testDeletedParentFile() throws Exception // sleep to let the resource-change event fire // TODO: Is there a more reliable, consistent, and efficient way to wait? - sleep( 1000 ); + Util.waitAtLeast(1000); incrementalBuild( project.getFullPath() ); expectingOnlyProblemsFor( p1bPath ); diff --git a/org.eclipse.jdt.core.compiler.batch/META-INF/MANIFEST.MF b/org.eclipse.jdt.core.compiler.batch/META-INF/MANIFEST.MF index b65c5e4403d..4de39edcaed 100644 --- a/org.eclipse.jdt.core.compiler.batch/META-INF/MANIFEST.MF +++ b/org.eclipse.jdt.core.compiler.batch/META-INF/MANIFEST.MF @@ -3,7 +3,7 @@ Main-Class: org.eclipse.jdt.internal.compiler.batch.Main Bundle-ManifestVersion: 2 Bundle-Name: Eclipse Compiler for Java(TM) Bundle-SymbolicName: org.eclipse.jdt.core.compiler.batch -Bundle-Version: 3.40.150.qualifier +Bundle-Version: 3.41.50.qualifier Bundle-ClassPath: . Bundle-Vendor: Eclipse.org Automatic-Module-Name: org.eclipse.jdt.core.compiler.batch diff --git a/org.eclipse.jdt.core.compiler.batch/pom.xml b/org.eclipse.jdt.core.compiler.batch/pom.xml index 5df2db167d2..1ead7c5044c 100644 --- a/org.eclipse.jdt.core.compiler.batch/pom.xml +++ b/org.eclipse.jdt.core.compiler.batch/pom.xml @@ -17,7 +17,7 @@ 4.35.0-SNAPSHOT org.eclipse.jdt.core.compiler.batch - 3.40.150-SNAPSHOT + 3.41.50-SNAPSHOT eclipse-plugin diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java index 42d2fd9d5de..289c958a32c 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java @@ -1995,6 +1995,12 @@ public interface IProblem { * @since 3.36 */ int NullityUncheckedTypeAnnotation = Internal + 986; + /** @since 3.41 */ + int MessageSendWithUnresolvedOwningAnnotation = Internal + 987; + /** @since 3.41 */ + int ParameterWithUnresolvedOwningAnnotation = Internal + 988; + /** @since 3.41 */ + int FieldWithUnresolvedOwningAnnotation = Internal + 989; // Java 8 work diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/Compiler.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/Compiler.java index 5b624bd5048..aa4ce599980 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/Compiler.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/Compiler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2017 IBM Corporation and others. + * Copyright (c) 2000, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -335,6 +335,14 @@ public void accept(IBinaryType binaryType, PackageBinding packageBinding, Access */ @Override public void accept(ICompilationUnit sourceUnit, AccessRestriction accessRestriction) { + if (this.lookupEnvironment.unitBeingCompleted != null) { + // resilience for https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3273 + // NEVER accept a sourceUnit that is already being completed + char[] fileName1 = this.lookupEnvironment.unitBeingCompleted.compilationResult.fileName; + char[] fileName2 = sourceUnit.getFileName(); + if (CharOperation.equals(fileName1, fileName2) && !CharOperation.equals(fileName1, TypeConstants.MODULE_INFO_FILE_NAME)) + return; + } // Switch the current policy and compilation result for this unit to the requested one. CompilationResult unitResult = new CompilationResult(sourceUnit, this.totalUnits, this.totalUnits, this.options.maxProblemsPerUnit); diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/ASTNode.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/ASTNode.java index 80050df0af0..1adf20c1bc7 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/ASTNode.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/ASTNode.java @@ -224,6 +224,7 @@ public abstract class ASTNode implements TypeConstants, TypeIds { public static final int IsUsefulEmptyStatement = Bit1; // for block and method declaration + public static final int SwitchRuleBlock = Bit1; public static final int UndocumentedEmptyBlock = Bit4; public static final int OverridingMethodWithSupercall = Bit5; public static final int CanBeStatic = Bit9; // used to flag a method that can be declared static @@ -1000,6 +1001,7 @@ public static void resolveAnnotations(BlockScope scope, Annotation[] sourceAnnot if (annotations != null) { annotations[i] = annotation.getCompilerAnnotation(); } + tagMissingAnalysisAnnotation(scope, recipient, annotation); } } @@ -1075,6 +1077,32 @@ public static void resolveAnnotations(BlockScope scope, Annotation[] sourceAnnot return annotations; } + private static void tagMissingAnalysisAnnotation(Scope scope, Binding recipient, Annotation annotation) { + long extendedTagBits = scope.environment().checkForMissingAnalysisAnnotation(annotation.resolvedType); + if (extendedTagBits != 0) { + if (recipient instanceof MethodBinding method) { + method.extendedTagBits |= extendedTagBits; + } else if (recipient instanceof VariableBinding variable) { + if (extendedTagBits == ExtendedTagBits.HasMissingOwningAnnotation + && scope instanceof MethodScope methodScope + && variable.isParameter() + && variable instanceof LocalVariableBinding local + && local.declaration instanceof Argument arg) + { + Argument[] arguments = methodScope.referenceMethod().arguments; + for (int j=0;j < arguments.length;j++){ + if (arguments[j] == arg) { + methodScope.referenceMethodBinding().original().markMissingOwningAnnotationOnParameter(j); + break; + } + } + } else if (variable instanceof FieldBinding field) { + field.extendedTagBits |= extendedTagBits; + } + } + } + } + /** Resolve JSR308 annotations on a type reference, array creation expression or a wildcard. Type parameters go directly to the method/ctor, By construction the bindings associated with QTR, PQTR etc get resolved first and then annotations for different levels get resolved and applied at one go. Likewise for multidimensional arrays. diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Block.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Block.java index 9601579da2c..711a57707f4 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Block.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Block.java @@ -42,36 +42,42 @@ public Block(int explicitDeclarations) { @Override public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { - // empty block - if (this.statements == null) return flowInfo; - int complaintLevel = (flowInfo.reachMode() & FlowInfo.UNREACHABLE) != 0 ? Statement.COMPLAINED_FAKE_REACHABLE : Statement.NOT_COMPLAINED; - CompilerOptions compilerOptions = currentScope.compilerOptions(); - boolean enableSyntacticNullAnalysisForFields = compilerOptions.enableSyntacticNullAnalysisForFields; - for (Statement stat : this.statements) { - if ((complaintLevel = stat.complainIfUnreachable(flowInfo, this.scope, complaintLevel, true)) < Statement.COMPLAINED_UNREACHABLE) { - flowInfo = stat.analyseCode(this.scope, flowContext, flowInfo); + if (this.statements != null) { + int complaintLevel = (flowInfo.reachMode() & FlowInfo.UNREACHABLE) != 0 ? Statement.COMPLAINED_FAKE_REACHABLE : Statement.NOT_COMPLAINED; + CompilerOptions compilerOptions = currentScope.compilerOptions(); + boolean enableSyntacticNullAnalysisForFields = compilerOptions.enableSyntacticNullAnalysisForFields; + for (Statement stat : this.statements) { + if ((complaintLevel = stat.complainIfUnreachable(flowInfo, this.scope, complaintLevel, true)) < Statement.COMPLAINED_UNREACHABLE) { + flowInfo = stat.analyseCode(this.scope, flowContext, flowInfo); + } + // record the effect of stat on the finally block of an enclosing try-finally, if any: + flowContext.mergeFinallyNullInfo(flowInfo); + if (enableSyntacticNullAnalysisForFields) { + flowContext.expireNullCheckedFieldInfo(); + } + if (compilerOptions.analyseResourceLeaks) { + FakedTrackingVariable.cleanUpUnassigned(this.scope, stat, flowInfo, false); + } } - // record the effect of stat on the finally block of an enclosing try-finally, if any: - flowContext.mergeFinallyNullInfo(flowInfo); - if (enableSyntacticNullAnalysisForFields) { - flowContext.expireNullCheckedFieldInfo(); + if (this.scope != currentScope) { + // if block is tracking any resources other than the enclosing 'currentScope', analyse them now: + this.scope.checkUnclosedCloseables(flowInfo, flowContext, null, null); } - if (compilerOptions.analyseResourceLeaks) { - FakedTrackingVariable.cleanUpUnassigned(this.scope, stat, flowInfo, false); + if (this.explicitDeclarations > 0) { + // cleanup assignment info for locals that are scoped to this block: + LocalVariableBinding[] locals = this.scope.locals; + if (locals != null) { + int numLocals = this.scope.localIndex; + for (int i = 0; i < numLocals; i++) { + flowInfo.resetAssignmentInfo(locals[i]); + } + } } } - if (this.scope != currentScope) { - // if block is tracking any resources other than the enclosing 'currentScope', analyse them now: - this.scope.checkUnclosedCloseables(flowInfo, flowContext, null, null); - } - if (this.explicitDeclarations > 0) { - // cleanup assignment info for locals that are scoped to this block: - LocalVariableBinding[] locals = this.scope.locals; - if (locals != null) { - int numLocals = this.scope.localIndex; - for (int i = 0; i < numLocals; i++) { - flowInfo.resetAssignmentInfo(locals[i]); - } + if ((this.bits & ASTNode.SwitchRuleBlock) != 0) { // switch rule blocks don't fall through + if (flowInfo != FlowInfo.DEAD_END) { + flowContext.recordBreakFrom(flowInfo); + return FlowInfo.DEAD_END; } } return flowInfo; diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java index 7bfefdbb812..43f98c90a54 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/CaseStatement.java @@ -128,10 +128,9 @@ private Constant resolveConstantLabel(BlockScope scope, TypeBinding caseType, Ty CompilerOptions options = scope.compilerOptions(); if (caseType.isEnum() && caseType.isCompatibleWith(selectorType)) { - if (((expression.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) { + if (((expression.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT) != 0) scope.problemReporter().enumConstantsCannotBeSurroundedByParenthesis(expression); - return Constant.NotAConstant; - } + if (expression instanceof NameReference reference && reference.binding instanceof FieldBinding field) { if ((field.modifiers & ClassFileConstants.AccEnum) == 0) scope.problemReporter().enumSwitchCannotTargetField(reference, field); @@ -359,8 +358,8 @@ public void generateCode(BlockScope currentScope, CodeStream codeStream) { } patternMatchLabel.place(); } else { - if (this.swich.containsNull) - this.swich.nullProcessed |= true; + if (this.swich.nullCase == this) + this.swich.nullProcessed = true; } codeStream.recordPositionsFrom(pc, this.sourceStart); } diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java index 56ce1d92bf5..f48813dd78f 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java @@ -342,6 +342,18 @@ public static FakedTrackingVariable preConnectTrackerAcrossAssignment(ASTNode lo } return closeTracker; } + static void checkMethodForMissingAnnotation(MessageSend messageSend, Scope scope) { + if ((messageSend.binding.original().extendedTagBits & ExtendedTagBits.HasMissingOwningAnnotation) != 0) + scope.problemReporter().messageWithUnresolvedOwningAnnotation(messageSend, scope.environment()); + } + static void checkParameterForMissingAnnotation(ASTNode location, MethodBinding method, int rank, Scope scope) { + if (method != null && method.parameterHasMissingOwningAnnotation(rank)) + scope.problemReporter().parameterWithUnresolvedOwningAnnotation(location, method.original(), rank, scope.environment()); + } + static void checkFieldForMissingAnnotation(ASTNode location, FieldBinding fieldBinding, Scope scope) { + if (fieldBinding != null && (fieldBinding.extendedTagBits & ExtendedTagBits.HasMissingOwningAnnotation) != 0) + scope.problemReporter().fieldWithUnresolvedOwningAnnotation(location, fieldBinding, scope.environment()); + } private static boolean containsAllocation(SwitchExpression location) { for (Expression re : location.resultExpressions()) { @@ -510,6 +522,7 @@ public static FlowInfo analyseCloseableAcquisition(BlockScope scope, FlowInfo fl } else { // regular resource FakedTrackingVariable tracker = acquisition.closeTracker; if (scope.compilerOptions().isAnnotationBasedResourceAnalysisEnabled) { + checkMethodForMissingAnnotation(acquisition, scope); long owningTagBits = acquisition.binding.tagBits & TagBits.AnnotationOwningMASK; int initialNullStatus = (owningTagBits == TagBits.AnnotationNotOwning) ? FlowInfo.NON_NULL : FlowInfo.NULL; if (tracker == null) { @@ -839,6 +852,7 @@ public static void handleResourceFieldAssignment(BlockScope scope, FlowInfo flow field = fieldReference.binding; } if (field != null&& (field.tagBits & TagBits.AnnotationNotOwning) == 0) { // assignment to @NotOwned has no meaning + checkFieldForMissingAnnotation(lhs, field, scope); if ((field.tagBits & TagBits.AnnotationOwning) != 0) { rhsTrackVar.markNullStatus(flowInfo, flowContext, FlowInfo.NON_NULL); } else { @@ -914,6 +928,7 @@ else if (expression instanceof CastExpression) if (useAnnotations && (expression.bits & RestrictiveFlagMASK) == Binding.FIELD) { // field read FieldBinding fieldBinding = ((Reference) expression).lastFieldBinding(); + checkFieldForMissingAnnotation(expression, fieldBinding, scope); long owningBits = 0; if (fieldBinding != null) { owningBits = fieldBinding.getAnnotationTagBits() & TagBits.AnnotationOwningMASK; @@ -946,7 +961,7 @@ else if (expression instanceof CastExpression) if (isBlacklistedMethod(expression)) { initialNullStatus = FlowInfo.NULL; } else if (useAnnotations) { - initialNullStatus = getNullStatusFromMessageSend(expression); + initialNullStatus = getNullStatusFromMessageSend(expression, scope); } if (initialNullStatus != 0) return new FakedTrackingVariable(local, location, flowInfo, flowContext, initialNullStatus, useAnnotations); @@ -968,6 +983,9 @@ else if (expression instanceof CastExpression) // leave state as UNKNOWN, the bit OWNED_BY_OUTSIDE will prevent spurious warnings return tracker; } + } else if (expression instanceof LambdaExpression) { + // treat fresh lambda like a fresh resource + return new FakedTrackingVariable(local, location, flowInfo, flowContext, FlowInfo.NULL, useAnnotations); } if (local.closeTracker != null) @@ -992,8 +1010,9 @@ private static boolean isBlacklistedMethod(Expression expression) { } /* pre: usesOwningAnnotations. */ - protected static int getNullStatusFromMessageSend(Expression expression) { - if (expression instanceof MessageSend) { + protected static int getNullStatusFromMessageSend(Expression expression, Scope scope) { + if (expression instanceof MessageSend message) { + checkMethodForMissingAnnotation(message, scope); if ((((MessageSend) expression).binding.tagBits & TagBits.AnnotationNotOwning) != 0) return FlowInfo.NON_NULL; return FlowInfo.NULL; // per default assume responsibility to close diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Invocation.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Invocation.java index 2e84117b5f1..49400b9421f 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Invocation.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/Invocation.java @@ -60,9 +60,11 @@ default FlowInfo handleResourcePassedToInvocation(BlockScope currentScope, Metho if (currentScope.compilerOptions().isAnnotationBasedResourceAnalysisEnabled) { FakedTrackingVariable trackVar = FakedTrackingVariable.getCloseTrackingVariable(argument, flowInfo, flowContext, true); if (trackVar != null) { - if (methodBinding.ownsParameter(rank)) { + int safeRank = Math.min(rank, methodBinding.parameters.length-1); // account for varargs + FakedTrackingVariable.checkParameterForMissingAnnotation(argument, methodBinding, safeRank, currentScope); + if (methodBinding.ownsParameter(safeRank)) { trackVar.markOwnedByOutside(flowInfo, flowContext); - } else if (methodBinding.notownsParameter(rank)) { + } else if (methodBinding.notownsParameter(safeRank)) { // ignore, no relevant change } else { trackVar.markAsShared(); diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/RecordPattern.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/RecordPattern.java index 883202e4099..b824369cdfa 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/RecordPattern.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/RecordPattern.java @@ -244,6 +244,7 @@ original record instance as receiver - leaving the stack drained. labels.add(exceptionLabel); TypeBinding componentType = p.accessorMethod.returnType; + checkForPrimitiveType(currentScope, p, componentType); if (TypeBinding.notEquals(p.accessorMethod.original().returnType.erasure(), componentType.erasure())) codeStream.checkcast(componentType); // lastComponent ? [C] : [R, C] @@ -291,6 +292,18 @@ original record instance as receiver - leaving the stack drained. } } + private void checkForPrimitiveType(BlockScope currentScope, Pattern p, TypeBinding componentType) { + if (p.isTotalTypeNode && !componentType.isPrimitiveType() && p instanceof TypePattern tp) { + TypeBinding providedType = tp.resolvedType; + if (providedType != null && providedType.isPrimitiveType()) { + PrimitiveConversionRoute route = Pattern.findPrimitiveConversionRoute(componentType, providedType, currentScope); + if (route != PrimitiveConversionRoute.NO_CONVERSION_ROUTE) { + p.isTotalTypeNode = false; + } + } + } + } + @Override public void traverse(ASTVisitor visitor, BlockScope scope) { if (visitor.visit(this, scope)) { diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java index 40a96991762..10d3b920bbd 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/SwitchStatement.java @@ -97,8 +97,7 @@ public static record SingletonBootstrap(String id, char[] selector, char[] signa // fallthrough public final static int CASE = 0; public final static int FALLTHROUGH = 1; - public final static int ESCAPING = 2; - public final static int BREAKING = 3; + public final static int BREAKING = 2; // Other bits public final static int LabeledRules = ASTNode.Bit1; @@ -374,9 +373,9 @@ protected boolean needToCheckFlowInAbsenceOfDefaultBranch() { public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { try { flowInfo = this.expression.analyseCode(currentScope, flowContext, flowInfo); - if (isNullHostile()) { + if (!this.containsNull && this.expression.resolvedType instanceof ReferenceBinding) this.expression.checkNPE(currentScope, flowContext, flowInfo, 1); - } + SwitchFlowContext switchContext = new SwitchFlowContext(flowContext, this, (this.breakLabel = new BranchLabel()), true, true); @@ -432,8 +431,6 @@ else if ((statement.bits & ASTNode.DocumentedFallthrough) == 0) // the case is n } if ((complaintLevel = statement.complainIfUnreachable(caseInits, this.scope, complaintLevel, true)) < Statement.COMPLAINED_UNREACHABLE) { caseInits = statement.analyseCode(this.scope, switchContext, caseInits); - if (caseInits == FlowInfo.DEAD_END) - fallThroughState = ESCAPING; if (compilerOptions.enableSyntacticNullAnalysisForFields) switchContext.expireNullCheckedFieldInfo(); if (compilerOptions.analyseResourceLeaks) @@ -464,16 +461,6 @@ else if ((statement.bits & ASTNode.DocumentedFallthrough) == 0) // the case is n if (this.scope != null) this.scope.enclosingCase = null; // no longer inside switch case block } } - private boolean isNullHostile() { - if (this.containsNull) - return false; - if ((this.expression.implicitConversion & TypeIds.UNBOXING) != 0) - return true; - if (this.expression.resolvedType != null && (this.expression.resolvedType.id == T_JavaLangString || this.expression.resolvedType.isEnum())) - return true; - return this.totalPattern == null; - } - /** * Switch on String code generation * This assumes that hashCode() specification for java.lang.String is API @@ -1032,16 +1019,12 @@ void gatherLabelExpression(LabelExpression labelExpression) { public void resolve(BlockScope upperScope) { try { TypeBinding expressionType = this.expression.resolveType(upperScope); + if (expressionType != null && !expressionType.isValidBinding()) + expressionType = null; // fault-tolerance: ignore further type mismatch from label expressions CompilerOptions compilerOptions = upperScope.compilerOptions(); if (expressionType != null) { this.expression.computeConversion(upperScope, expressionType, expressionType); checkType: { - - if (!expressionType.isValidBinding()) { - expressionType = null; // fault-tolerance: ignore type mismatch from constants from hereon - break checkType; - } - if (expressionType.isBaseType()) { if (JavaFeature.PRIMITIVES_IN_PATTERNS.isSupported(compilerOptions)) this.isPrimitiveSwitch = true; @@ -1050,28 +1033,25 @@ public void resolve(BlockScope upperScope) { if (expressionType.isCompatibleWith(TypeBinding.INT)) break checkType; } - if (expressionType.id == TypeIds.T_JavaLangString || expressionType.isEnum() || upperScope.isBoxingCompatibleWith(expressionType, TypeBinding.INT)) break checkType; - - if (!JavaFeature.PATTERN_MATCHING_IN_SWITCH.isSupported(compilerOptions) || (expressionType.isBaseType() && expressionType.id != T_null && expressionType.id != T_void)) { + if (JavaFeature.PATTERN_MATCHING_IN_SWITCH.isSupported(compilerOptions) && (!expressionType.isBaseType() || expressionType.id == T_null || expressionType.id == T_void)) { + this.isNonTraditional = true; + } else { if (!this.isPrimitiveSwitch) { // when isPrimitiveSwitch is set it is approved above upperScope.problemReporter().incorrectSwitchType(this.expression, expressionType); expressionType = null; // fault-tolerance: ignore type mismatch from constants from hereon } - } else { - this.isNonTraditional = true; } } } this.scope = new BlockScope(upperScope); if (expressionType != null) - reserveSecretVariablesSlots(); + reserveSecretVariablesSlot(); else this.switchBits |= InvalidSelector; - if (this.statements != null) { preprocess(); // make a pass over the switch block and allocate vectors. LocalVariableBinding[] patternVariables = NO_VARIABLES; @@ -1099,18 +1079,10 @@ public void resolve(BlockScope upperScope) { if (expressionType != null) { if (!expressionType.isBaseType() && upperScope.isBoxingCompatibleWith(expressionType, TypeBinding.INT)) { - if (this.containsPatterns || this.containsNull) { - if (!JavaFeature.PATTERN_MATCHING_IN_SWITCH.isSupported(compilerOptions) || (expressionType.isBaseType() && expressionType.id != T_null && expressionType.id != T_void)) { - if (!this.isPrimitiveSwitch) { // when isPrimitiveSwitch is set it is approved above - upperScope.problemReporter().incorrectSwitchType(this.expression, expressionType); - this.switchBits |= InvalidSelector; - expressionType = null; // fault-tolerance: ignore type mismatch from constants from hereon - } - } - } else + if (!this.containsPatterns && !this.containsNull) this.expression.computeConversion(upperScope, TypeBinding.INT, expressionType); } - releaseUnusedSecretVariables(); + releaseUnusedSecretVariable(); complainIfNotExhaustiveSwitch(upperScope, expressionType, compilerOptions); } @@ -1151,12 +1123,10 @@ private void complainIfNotExhaustiveSwitch(BlockScope upperScope, TypeBinding se } if (this.defaultCase == null) { - if (this instanceof SwitchExpression // complained about elsewhere, don't also bark here - || compilerOptions.getSeverity(CompilerOptions.MissingDefaultCase) == ProblemSeverities.Ignore) { + if (this instanceof SwitchExpression || compilerOptions.getSeverity(CompilerOptions.MissingDefaultCase) == ProblemSeverities.Ignore) // complained about elsewhere, don't also bark here upperScope.methodScope().hasMissingSwitchDefault = true; - } else { + else upperScope.problemReporter().missingDefaultCase(this, true, selectorType); - } } return; } @@ -1314,13 +1284,13 @@ private boolean needPatternDispatchCopy() { return !(eType.isPrimitiveOrBoxedPrimitiveType() || eType.isEnum() || eType.id == TypeIds.T_JavaLangString); // classic selectors } - private void reserveSecretVariablesSlots() { // may be released later if unused. + private void reserveSecretVariablesSlot() { // may be released later if unused. this.selector = new LocalVariableBinding(SecretSelectorVariableName, this.scope.getJavaLangObject(), ClassFileConstants.AccDefault, false); this.scope.addLocalVariable(this.selector); this.selector.setConstant(Constant.NotAConstant); } - private void releaseUnusedSecretVariables() { + private void releaseUnusedSecretVariable() { if (this.selector != null) { if (this.expression.resolvedType.id == T_JavaLangString && !this.isNonTraditional) { this.selector.useFlag = LocalVariableBinding.USED; @@ -1328,7 +1298,7 @@ private void releaseUnusedSecretVariables() { } else if (needPatternDispatchCopy()) { this.selector.useFlag = LocalVariableBinding.USED; this.selector.type = this.expression.resolvedType; - } + } // else gets released by virtue of not being tagged USED. } } protected void reportMissingEnumConstantCase(BlockScope upperScope, FieldBinding enumConstant) { diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/TypePattern.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/TypePattern.java index dfbb068495f..f2ffd391f4f 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/TypePattern.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/TypePattern.java @@ -69,18 +69,7 @@ public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, Fl return patternInfo; // exclude anonymous blokes from flow analysis. patternInfo.markAsDefinitelyAssigned(this.local.binding); - if (!this.isTotalTypeNode) { - // non-total type patterns create a nonnull local: - patternInfo.markAsDefinitelyNonNull(this.local.binding); - } else { - // total type patterns inherit the nullness of the value being switched over, unless ... - if (flowContext.associatedNode instanceof SwitchStatement swStmt) { - int nullStatus = swStmt.containsNull - ? FlowInfo.NON_NULL // ... null is handled in a separate case - : swStmt.expression.nullStatus(patternInfo, flowContext); - patternInfo.markNullStatus(this.local.binding, nullStatus); - } - } + patternInfo.markAsDefinitelyNonNull(this.local.binding); return patternInfo; } diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/ICompilationUnit.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/ICompilationUnit.java index 7d846729cf7..d9b3318b6b7 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/ICompilationUnit.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/ICompilationUnit.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2017 IBM Corporation and others. + * Copyright (c) 2000, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -61,7 +61,11 @@ default boolean ignoreOptionalProblems() { * @return the binding representing the module. */ default ModuleBinding module(LookupEnvironment environment) { - return environment.getModule(getModuleName()); + if (environment.nameEnvironment instanceof IModuleAwareNameEnvironment modEnv) { + char[] moduleName = modEnv.isOnModulePath(this) ? getModuleName() : ModuleBinding.UNNAMED; + return environment.getModule(moduleName); + } + return null; } /** * Returns the name of the module to which this compilation unit is associated. diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/IModuleAwareNameEnvironment.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/IModuleAwareNameEnvironment.java index 093af6cf389..594ed13bc08 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/IModuleAwareNameEnvironment.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/env/IModuleAwareNameEnvironment.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2016, 2017 IBM Corporation and others. + * Copyright (c) 2016, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -132,6 +132,16 @@ default char[][] getUniqueModulesDeclaringPackage(char[][] packageName, char[] m IModule getModule(char[] moduleName); char[][] getAllAutomaticModules(); + /** + * If this environment focusses on one IJavaProject answer if the given + * compilation unit is found on the module path, rather than the class path. + * @param unit compilation unit to test + * @return true iff unit is on the module path. + */ + default boolean isOnModulePath(ICompilationUnit unit) { + return true; // TODO: should more / all implementors implement this method? + } + /** * Ask the name environment to perform any updates (add-exports or add-reads) to the given module. * @param module the compiler representation of the module to updates diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/BoundSet.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/BoundSet.java index d4d6ae852a2..360a4ea4408 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/BoundSet.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/BoundSet.java @@ -1264,21 +1264,30 @@ private boolean superOnlyRaw(TypeBinding g, TypeBinding s, LookupEnvironment env } protected List> allSuperPairsWithCommonGenericType(TypeBinding s, TypeBinding t) { + return allSuperPairsWithCommonGenericTypeRecursive(s, t, new HashSet<>()); + } + + private List> allSuperPairsWithCommonGenericTypeRecursive(TypeBinding s, TypeBinding t, HashSet visited) { if (s == null || s.id == TypeIds.T_JavaLangObject || t == null || t.id == TypeIds.T_JavaLangObject) return Collections.emptyList(); + if (!visited.add(s.prototype())) + return Collections.emptyList(); List> result = new ArrayList<>(); - if (TypeBinding.equalsEquals(s.original(), t.original())) { + if (s.isParameterizedType() && t.isParameterizedType() // optimization #1: clients of this method only want to compare type arguments + && TypeBinding.equalsEquals(s.original(), t.original())) { result.add(new Pair<>(s, t)); } + if (TypeBinding.equalsEquals(s, t)) + return result; // optimization #2: nothing interesting above equal types TypeBinding tSuper = t.findSuperTypeOriginatingFrom(s); - if (tSuper != null) { + if (tSuper != null && s.isParameterizedType() && tSuper.isParameterizedType()) { // optimization #1 again result.add(new Pair<>(s, tSuper)); } - result.addAll(allSuperPairsWithCommonGenericType(s.superclass(), t)); + result.addAll(allSuperPairsWithCommonGenericTypeRecursive(s.superclass(), t, visited)); ReferenceBinding[] superInterfaces = s.superInterfaces(); if (superInterfaces != null) { for (ReferenceBinding superInterface : superInterfaces) { - result.addAll(allSuperPairsWithCommonGenericType(superInterface, t)); + result.addAll(allSuperPairsWithCommonGenericTypeRecursive(superInterface, t, visited)); } } return result; diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ExtendedTagBits.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ExtendedTagBits.java index e7b7b5d32b5..5d6f3b15789 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ExtendedTagBits.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/ExtendedTagBits.java @@ -31,4 +31,6 @@ public interface ExtendedTagBits { // @Owning / closing int IsClosingMethod = ASTNode.Bit1; // method + + int HasMissingOwningAnnotation = ASTNode.Bit2; // method/ctor or field } diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java index eaafde60124..22cc530ee5e 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/FieldBinding.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2020 IBM Corporation and others. + * Copyright (c) 2000, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -38,6 +38,7 @@ public class FieldBinding extends VariableBinding { public int compoundUseFlag = 0; // number or accesses via postIncrement or compoundAssignment public FakedTrackingVariable closeTracker; + public long extendedTagBits; protected FieldBinding() { super(null, null, 0, null); diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java index fef2eb95c2f..303fe765988 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java @@ -1656,6 +1656,27 @@ int getAnalysisAnnotationBit(char[][] qualifiedTypeName) { Integer typeBit = this.allAnalysisAnnotations.get(qualifiedTypeString); return typeBit == null ? 0 : typeBit; } +/** + * Check if the given type is a missing type that could be relevant for static analysis. + * @return A bit from {@link ExtendedTagBits} encoding the check result, or {@code 0}. + */ +public long checkForMissingAnalysisAnnotation(TypeBinding resolvedType) { + if (resolvedType instanceof MissingTypeBinding missing) { + if (this.globalOptions.isAnnotationBasedResourceAnalysisEnabled) { + if ((getAnalysisAnnotationBit(missing.compoundName) & TypeIds.BitAnyOwningAnnotation) != 0) + return ExtendedTagBits.HasMissingOwningAnnotation; + char[] simpleName = missing.compoundName[missing.compoundName.length-1]; + if (matchesSimpleName(simpleName, this.globalOptions.owningAnnotationName) + || matchesSimpleName(simpleName, this.globalOptions.notOwningAnnotationName)) + return ExtendedTagBits.HasMissingOwningAnnotation; + } + } + return 0; +} +private boolean matchesSimpleName(char[] simpleName, char[][] qualifiedName) { + return CharOperation.equals(simpleName, qualifiedName[qualifiedName.length-1]); +} + public boolean isNullnessAnnotationPackage(PackageBinding pkg) { return this.nonnullAnnotationPackage == pkg || this.nullableAnnotationPackage == pkg || this.nonnullByDefaultAnnotationPackage == pkg; } diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java index b2e0e94bde0..28cc9c3ac24 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java @@ -78,6 +78,7 @@ public class MethodBinding extends Binding { public static byte PARAM_NULLITY = (byte) (PARAM_NONNULL | PARAM_NULLABLE); public static byte PARAM_OWNING = 4; public static byte PARAM_NOTOWNING = 8; + public static byte PARAM_MISSING_OWNING_ANN = 16; public static byte flowBitFromAnnotationTagBit(long tagBit) { if (tagBit == TagBits.AnnotationNonNull) @@ -1509,6 +1510,17 @@ public boolean notownsParameter(int i) { return (this.parameterFlowBits[i] & PARAM_NOTOWNING) != 0; return false; } +public boolean parameterHasMissingOwningAnnotation(int rank) { + if (this.parameterFlowBits != null) + return (this.parameterFlowBits[rank] & PARAM_MISSING_OWNING_ANN) != 0; + return false; +} +public void markMissingOwningAnnotationOnParameter(int rank) { + if (this.parameterFlowBits == null) + this.parameterFlowBits = new byte[this.parameters.length]; + this.parameterFlowBits[rank] |= PARAM_MISSING_OWNING_ANN; +} + /** @return TRUE means @NonNull declared, FALSE means @Nullable declared, null means nothing declared */ public Boolean getParameterNullness(int idx) { if (this.parameterFlowBits != null) { diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/TypeIds.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/TypeIds.java index e0c4a672010..8a503d5c7cd 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/TypeIds.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/lookup/TypeIds.java @@ -289,6 +289,8 @@ public interface TypeIds { /** Mark the type as notowning-annotation for resource analysis. */ final int BitNotOwningAnnotation = 4096; + final int BitAnyOwningAnnotation = BitOwningAnnotation | BitNotOwningAnnotation; + /** * Set of type bits that should be inherited by any sub types. */ diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/Parser.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/Parser.java index dffa8893759..f2a4d85db6d 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/Parser.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/parser/Parser.java @@ -9441,6 +9441,9 @@ protected void consumeSwitchRule(SwitchRuleKind kind) { expr.bits &= ~ASTNode.InsideExpressionStatement; YieldStatement yieldStatement = new YieldStatement(expr, true, expr.sourceStart, this.endStatementPosition); this.astStack[this.astPtr] = yieldStatement; + } else if (kind == SwitchRuleKind.BLOCK) { + Block block = (Block) this.astStack[this.astPtr]; + block.bits |= ASTNode.SwitchRuleBlock; } concatNodeLists(); } diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java index 3213176ef46..d44a5e6dcb5 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java @@ -1858,22 +1858,25 @@ public void deprecatedMethod(final MethodBinding method, ASTNode location) { boolean isConstructor = method.isConstructor(); int start = -1; + int end = -1; if (isConstructor) { if(location instanceof AllocationExpression) { // omit the new keyword from the warning marker // https://bugs.eclipse.org/bugs/show_bug.cgi?id=300031 AllocationExpression allocationExpression = (AllocationExpression) location; start = allocationExpression.nameSourceStart(); + end = allocationExpression.nameSourceEnd(); } } else { if (location instanceof MessageSend) { // start the warning marker from the location where the name of the method starts // https://bugs.eclipse.org/bugs/show_bug.cgi?id=300031 start = (int) (((MessageSend)location).nameSourcePosition >>> 32); + end = (int) ((MessageSend)location).nameSourcePosition; } } int sourceStart = (start == -1) ? location.sourceStart : start; - int sourceEnd = location.sourceEnd; + final int sourceEnd = (end == -1) ? location.sourceEnd : end; // discriminate: boolean terminally = (method.tagBits & TagBits.AnnotationTerminallyDeprecated) != 0; @@ -6407,6 +6410,59 @@ public void nullAnnotationUnsupportedLocation(TypeReference type) { handle(IProblem.NullAnnotationUnsupportedLocationAtType, NoArgument, NoArgument, type.sourceStart, sourceEnd); } +private char[][] missingAnalysisAnnotationName(AnnotationBinding[] annotations, LookupEnvironment environment) { + for (AnnotationBinding annotationBinding : annotations) { + if (annotationBinding.getAnnotationType() instanceof ReferenceBinding type + && environment.checkForMissingAnalysisAnnotation(type) != 0) + return type.compoundName; + } + return null; +} +public void messageWithUnresolvedOwningAnnotation(MessageSend send, LookupEnvironment environment) { + char[][] compoundName = missingAnalysisAnnotationName(send.binding.original().getAnnotations(), environment); + if (compoundName == null) + return; + String selector = String.valueOf(send.selector); + handle(IProblem.MessageSendWithUnresolvedOwningAnnotation, + new String[] {selector, CharOperation.toString(compoundName)}, + new String[] {selector, String.valueOf(compoundName[compoundName.length-1])}, + ProblemSeverities.Warning, + send.sourceStart, + send.nameSourceEnd()); +} +public void parameterWithUnresolvedOwningAnnotation(ASTNode location, MethodBinding method, int rank, LookupEnvironment environment) { + // locate the missing annotation on parameter #rank: + AnnotationBinding[][] parameterAnnotations = method.original().getParameterAnnotations(); + char[][] compoundName = missingAnalysisAnnotationName(parameterAnnotations[rank], environment); + if (compoundName == null) + return; + String parameterName = method.parameterNames != Binding.NO_PARAMETER_NAMES + ? String.valueOf(method.parameterNames[rank]) + : "arg"+rank; //$NON-NLS-1$ + String[] args = { + String.valueOf(parameterName), + String.valueOf(method.selector), + CharOperation.toString(compoundName) + }; + handle(IProblem.ParameterWithUnresolvedOwningAnnotation, + args, + args, + ProblemSeverities.Warning, + location.sourceStart, + location.sourceEnd); +} +public void fieldWithUnresolvedOwningAnnotation(ASTNode location, FieldBinding fieldBinding, LookupEnvironment environment) { + char[][] compoundName = missingAnalysisAnnotationName(fieldBinding.getAnnotations(), environment); + if (compoundName == null) + return; + String selector = String.valueOf(fieldBinding.name); + handle(IProblem.FieldWithUnresolvedOwningAnnotation, + new String[] {selector, CharOperation.toString(compoundName)}, + new String[] {selector, String.valueOf(compoundName[compoundName.length-1])}, + ProblemSeverities.Warning, + location.sourceStart, + location.sourceEnd); +} public void localVariableNullInstanceof(LocalVariableBinding local, ASTNode location) { int severity = computeSeverity(IProblem.NullLocalVariableInstanceofYieldsFalse); if (severity == ProblemSeverities.Ignore) return; diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/messages.properties b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/messages.properties index b1d22ac8767..f928348c096 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/messages.properties +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/messages.properties @@ -870,6 +870,9 @@ 985 = This array dimension with declared element type {0} will be initialized with ''null'' entries # same text as 955: 986 = Null type safety (type annotations): The expression of type ''{1}'' needs unchecked conversion to conform to ''{0}'' +987 = Method ''{0}'' has an unresolved annotation ''{1}'' that could be relevant for static analysis +988 = Parameter ''{0}'' of method ''{1}'' has an unresolved annotation ''{2}'' that could be relevant for static analysis +989 = Field ''{0}'' has an unresolved annotation ''{1}'' that could be relevant for static analysis # Java 8 1001 = Syntax error, modifiers and annotations are not allowed for the lambda parameter {0} as its type is elided diff --git a/org.eclipse.jdt.core.tests.builder/META-INF/MANIFEST.MF b/org.eclipse.jdt.core.tests.builder/META-INF/MANIFEST.MF index 3bb787a3c47..b9810e8569f 100644 --- a/org.eclipse.jdt.core.tests.builder/META-INF/MANIFEST.MF +++ b/org.eclipse.jdt.core.tests.builder/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jdt.core.tests.builder; singleton:=true -Bundle-Version: 3.12.600.qualifier +Bundle-Version: 3.12.700.qualifier Bundle-Vendor: %providerName Bundle-Localization: plugin Export-Package: org.eclipse.jdt.core.tests.builder diff --git a/org.eclipse.jdt.core.tests.builder/pom.xml b/org.eclipse.jdt.core.tests.builder/pom.xml index 83a2b0ec31a..836ca2e2698 100644 --- a/org.eclipse.jdt.core.tests.builder/pom.xml +++ b/org.eclipse.jdt.core.tests.builder/pom.xml @@ -18,7 +18,7 @@ ../tests-pom/ org.eclipse.jdt.core.tests.builder - 3.12.600-SNAPSHOT + 3.12.700-SNAPSHOT eclipse-test-plugin diff --git a/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/DependencyTests.java b/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/DependencyTests.java index 9034e70d830..18503ea2d1d 100644 --- a/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/DependencyTests.java +++ b/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/DependencyTests.java @@ -1245,7 +1245,7 @@ public void test0100() throws JavaModelException { M1Path, 198, 200, CategorizedProblem.CAT_DEPRECATION, IMarker.SEVERITY_WARNING)); expectingSpecificProblemFor(M1Path, new Problem("", "The method foo() from the type N1.N2.N3 is deprecated", - M1Path, 217, 222, CategorizedProblem.CAT_DEPRECATION, IMarker.SEVERITY_WARNING)); + M1Path, 217, 220, CategorizedProblem.CAT_DEPRECATION, IMarker.SEVERITY_WARNING)); M1Path = env.addClass(rootPath, "p", "M1", M1Contents); incrementalBuild(projectPath); expectingOnlyProblemsFor(new IPath[] {M1Path}); @@ -1254,6 +1254,6 @@ public void test0100() throws JavaModelException { M1Path, 198, 200, CategorizedProblem.CAT_DEPRECATION, IMarker.SEVERITY_WARNING)); expectingSpecificProblemFor(M1Path, new Problem("", "The method foo() from the type N1.N2.N3 is deprecated", - M1Path, 217, 222, CategorizedProblem.CAT_DEPRECATION, IMarker.SEVERITY_WARNING)); + M1Path, 217, 220, CategorizedProblem.CAT_DEPRECATION, IMarker.SEVERITY_WARNING)); } } diff --git a/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/Java50Tests.java b/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/Java50Tests.java index 791b27710c2..1d8cba0d8e0 100644 --- a/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/Java50Tests.java +++ b/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/Java50Tests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2010 IBM Corporation and others. + * Copyright (c) 2000, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -113,7 +113,7 @@ public void testHierarchyCycleInstanceof() throws JavaModelException { } // https://bugs.eclipse.org/bugs/show_bug.cgi?id=231293 - public void _2551_testMissingRequiredBinaries() throws JavaModelException { + public void testMissingRequiredBinaries() throws JavaModelException { IPath p1 = env.addProject("P1", CompilerOptions.getFirstSupportedJavaVersion()); //$NON-NLS-1$ IPath p2 = env.addProject("P2"); //$NON-NLS-1$ @@ -164,8 +164,7 @@ public void _2551_testMissingRequiredBinaries() throws JavaModelException { incrementalBuild(p1); expectingOnlySpecificProblemsFor(p1,new Problem[]{ - new Problem("p1", "The project was not built since its build path is incomplete. Cannot find the class file for p2.Z. Fix the build path then try building this project", p1, -1, -1, CategorizedProblem.CAT_BUILDPATH, IMarker.SEVERITY_ERROR),//$NON-NLS-1$ //$NON-NLS-2$ - new Problem("p1", "The type p2.Z cannot be resolved. It is indirectly referenced from required type p2.Y", xx, 51, 67, CategorizedProblem.CAT_BUILDPATH, IMarker.SEVERITY_ERROR)//$NON-NLS-1$ //$NON-NLS-2$ + new Problem("p1", "The method foo(int, Z) from the type Y refers to the missing type Z", xx, 53, 56, CategorizedProblem.CAT_MEMBER, IMarker.SEVERITY_ERROR)//$NON-NLS-1$ //$NON-NLS-2$ }); } diff --git a/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/PackageInfoTest.java b/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/PackageInfoTest.java index ad6abd620af..01ae540f327 100644 --- a/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/PackageInfoTest.java +++ b/org.eclipse.jdt.core.tests.builder/src/org/eclipse/jdt/core/tests/builder/PackageInfoTest.java @@ -139,7 +139,7 @@ public void test002() throws JavaModelException { String javaVersion = System.getProperty("java.version"); if (javaVersion != null && JavaCore.compareJavaVersions(javaVersion, "9") >= 0) { expectingProblemsFor(new Path("/Project/src/testcase/Main.java"), - "Problem : The method getPackage(String) from the type Package is deprecated [ resource : range : <125,147> category : <110> severity : <1>]"); + "Problem : The method getPackage(String) from the type Package is deprecated [ resource : range : <125,135> category : <110> severity : <1>]"); } else { expectingNoProblems(); } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java index 135fd371db2..0576a48884b 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java @@ -3721,7 +3721,7 @@ public void test119() { "----------\n" + "3. WARNING in Y.java (at line 2)\n" + " void foo(){ super.foo(); }\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type X is deprecated\n" + "----------\n" + "4. ERROR in Y.java (at line 3)\n" + @@ -3758,7 +3758,7 @@ public void test120() { "----------\n" + "3. WARNING in Y.java (at line 2)\n" + " void foo(){ super.foo(); }\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type X is deprecated\n" + "----------\n" + "4. ERROR in Y.java (at line 3)\n" + @@ -4122,7 +4122,7 @@ public void test132() { "----------\n" + "1. WARNING in X.java (at line 7)\n" + " W.deprecated();\n" + - " ^^^^^^^^^^^^\n" + + " ^^^^^^^^^^\n" + "The method deprecated() from the type W is deprecated\n" + "----------\n" + "2. WARNING in X.java (at line 8)\n" + @@ -4362,7 +4362,7 @@ public void test137() { "----------\n" + "3. WARNING in X.java (at line 8)\n" + " W.deprecated();\n" + - " ^^^^^^^^^^^^\n" + + " ^^^^^^^^^^\n" + "The method deprecated() from the type W is deprecated\n" + "----------\n" + "4. WARNING in X.java (at line 9)\n" + @@ -4635,7 +4635,7 @@ public void test142c() { "----------\n" + "3. ERROR in X.java (at line 8)\n" + " super.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type OldStuff is deprecated\n" + "----------\n", JavacTestOptions.Excuse.EclipseWarningConfiguredAsError); diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java index f0ecad9241e..96c45a4075c 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CompilerInvocationTests.java @@ -522,6 +522,7 @@ class ProblemAttributes { expectedProblemAttributes.put("FieldTypeInternalNameProvided", DEPRECATED); expectedProblemAttributes.put("FieldTypeNotFound", DEPRECATED); expectedProblemAttributes.put("FieldTypeNotVisible", DEPRECATED); + expectedProblemAttributes.put("FieldWithUnresolvedOwningAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); expectedProblemAttributes.put("FinalFieldAssignment", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); expectedProblemAttributes.put("FinalMethodCannotBeOverridden", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); @@ -811,6 +812,7 @@ class ProblemAttributes { expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); expectedProblemAttributes.put("MandatoryCloseNotShown", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); expectedProblemAttributes.put("MandatoryCloseNotShownAtExit", new ProblemAttributes(CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM)); + expectedProblemAttributes.put("MessageSendWithUnresolvedOwningAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(CategorizedProblem.CAT_CODE_STYLE)); @@ -951,6 +953,7 @@ class ProblemAttributes { expectedProblemAttributes.put("ParameterMismatch", new ProblemAttributes(CategorizedProblem.CAT_MEMBER)); expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", new ProblemAttributes(CategorizedProblem.CAT_TYPE)); + expectedProblemAttributes.put("ParameterWithUnresolvedOwningAnnotation", new ProblemAttributes(CategorizedProblem.CAT_INTERNAL)); expectedProblemAttributes.put("ParsingError", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); expectedProblemAttributes.put("ParsingErrorDeleteToken", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); expectedProblemAttributes.put("ParsingErrorDeleteTokens", new ProblemAttributes(CategorizedProblem.CAT_SYNTAX)); @@ -1656,6 +1659,7 @@ class ProblemAttributes { expectedProblemAttributes.put("FieldTypeInternalNameProvided", SKIP); expectedProblemAttributes.put("FieldTypeNotFound", SKIP); expectedProblemAttributes.put("FieldTypeNotVisible", SKIP); + expectedProblemAttributes.put("FieldWithUnresolvedOwningAnnotation", SKIP); expectedProblemAttributes.put("FinalBoundForTypeVariable", new ProblemAttributes(JavaCore.COMPILER_PB_FINAL_PARAMETER_BOUND)); expectedProblemAttributes.put("FinalFieldAssignment", SKIP); expectedProblemAttributes.put("FinalMethodCannotBeOverridden", SKIP); @@ -1947,6 +1951,7 @@ class ProblemAttributes { expectedProblemAttributes.put("MaskedCatch", new ProblemAttributes(JavaCore.COMPILER_PB_HIDDEN_CATCH_BLOCK)); expectedProblemAttributes.put("MandatoryCloseNotShown", new ProblemAttributes(JavaCore.COMPILER_PB_UNCLOSED_CLOSEABLE)); expectedProblemAttributes.put("MandatoryCloseNotShownAtExit", new ProblemAttributes(JavaCore.COMPILER_PB_UNCLOSED_CLOSEABLE)); + expectedProblemAttributes.put("MessageSendWithUnresolvedOwningAnnotation", SKIP); expectedProblemAttributes.put("MethodButWithConstructorName", new ProblemAttributes(JavaCore.COMPILER_PB_METHOD_WITH_CONSTRUCTOR_NAME)); expectedProblemAttributes.put("MethodCanBePotentiallyStatic", new ProblemAttributes(JavaCore.COMPILER_PB_POTENTIALLY_MISSING_STATIC_ON_METHOD)); expectedProblemAttributes.put("MethodCanBeStatic", new ProblemAttributes(JavaCore.COMPILER_PB_MISSING_STATIC_ON_METHOD)); @@ -2087,6 +2092,7 @@ class ProblemAttributes { expectedProblemAttributes.put("ParameterMismatch", SKIP); expectedProblemAttributes.put("ParameterizedConstructorArgumentTypeMismatch", SKIP); expectedProblemAttributes.put("ParameterizedMethodArgumentTypeMismatch", SKIP); + expectedProblemAttributes.put("ParameterWithUnresolvedOwningAnnotation", SKIP); expectedProblemAttributes.put("ParsingError", SKIP); expectedProblemAttributes.put("ParsingErrorDeleteToken", SKIP); expectedProblemAttributes.put("ParsingErrorDeleteTokens", SKIP); diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated15Test.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated15Test.java index 58e34d0cd79..48ef6bb7435 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated15Test.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated15Test.java @@ -157,7 +157,7 @@ public void test002() { "----------\n" + "3. ERROR in p\\M1.java (at line 5)\n" + " m.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type N1.N2.N3 is deprecated\n" + "----------\n", JavacTestOptions.Excuse.EclipseWarningConfiguredAsError); @@ -269,7 +269,7 @@ public void test005() { "----------\n" + "3. ERROR in p2\\C.java (at line 4)\n" + " a.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type X.Inner is deprecated\n" + "----------\n", JavacTestOptions.Excuse.EclipseWarningConfiguredAsError); diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated18Test.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated18Test.java index 9f7487fce69..bc60993c23d 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated18Test.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated18Test.java @@ -49,7 +49,7 @@ public void test412555() { "----------\n" + "1. ERROR in X.java (at line 4)\n" + " Y.callMe();\n" + - " ^^^^^^^^\n" + + " ^^^^^^\n" + "The method callMe() from the type Y is deprecated\n" + "----------\n", null, @@ -94,7 +94,7 @@ void callDeprecated2() { ---------- 1. ERROR in Y.java (at line 10) X.deprecatedMethod(null); - ^^^^^^^^^^^^^^^^^^^^^^ + ^^^^^^^^^^^^^^^^ The method deprecatedMethod(Object) from the type X is deprecated ---------- 2. ERROR in Y.java (at line 11) @@ -104,7 +104,7 @@ The method deprecatedMethod(Object) from the type X is deprecated ---------- 3. ERROR in Y.java (at line 12) List.of().forEach(o -> X.deprecatedMethod(o)); - ^^^^^^^^^^^^^^^^^^^ + ^^^^^^^^^^^^^^^^ The method deprecatedMethod(Object) from the type X is deprecated ---------- """, diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated9Test.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated9Test.java index 39b395c55cf..0d7d51007d1 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated9Test.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Deprecated9Test.java @@ -95,7 +95,7 @@ public void test002() { "----------\n" + "3. ERROR in p\\M1.java (at line 5)\n" + " m.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type N1.N2.N3 has been deprecated and marked for removal\n" + "----------\n", JavacTestOptions.Excuse.EclipseWarningConfiguredAsError); @@ -148,7 +148,7 @@ public void test002binary() { "----------\n" + "3. ERROR in p\\M1.java (at line 5)\n" + " m.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type N1.N2.N3 has been deprecated and marked for removal\n" + "----------\n"; runner.javacTestOptions = @@ -232,7 +232,7 @@ public void test005a() { "----------\n" + "3. ERROR in p2\\C.java (at line 4)\n" + " a.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type X.Inner has been deprecated and marked for removal\n" + "----------\n", JavacTestOptions.Excuse.EclipseWarningConfiguredAsError); @@ -294,7 +294,7 @@ public void test005c() { "----------\n" + "1. WARNING in p2\\C.java (at line 5)\n" + " a.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type X.Inner has been deprecated and marked for removal\n" + "----------\n"; runner.runWarningTest(); @@ -403,7 +403,7 @@ public void testSinceSource() { "----------\n" + "1. WARNING in test1\\E02.java (at line 4)\n" + " System.out.println(new E01.Old());\n" + - " ^^^^^^^^^\n" + + " ^^^^^^^\n" + "The constructor E01.Old() is deprecated since version 1.0\n" + "----------\n" + "2. WARNING in test1\\E02.java (at line 4)\n" + @@ -413,12 +413,12 @@ public void testSinceSource() { "----------\n" + "3. WARNING in test1\\E02.java (at line 5)\n" + " E01 e = new E01();\n" + - " ^^^^^\n" + + " ^^^\n" + "The constructor E01() is deprecated since version 3.0.0\n" + "----------\n" + "4. WARNING in test1\\E02.java (at line 6)\n" + " e.old();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method old() from the type E01 is deprecated since version 4-SNAPSHOT\n" + "----------\n" + "5. WARNING in test1\\E02.java (at line 7)\n" + @@ -484,7 +484,7 @@ public void testSinceBinary() { "----------\n" + "1. WARNING in test1\\E02.java (at line 4)\n" + " System.out.println(new E01.Old());\n" + - " ^^^^^^^^^\n" + + " ^^^^^^^\n" + "The constructor E01.Old() is deprecated since version 1.0\n" + "----------\n" + "2. WARNING in test1\\E02.java (at line 4)\n" + @@ -494,12 +494,12 @@ public void testSinceBinary() { "----------\n" + "3. WARNING in test1\\E02.java (at line 5)\n" + " E01 e = new E01();\n" + - " ^^^^^\n" + + " ^^^\n" + "The constructor E01() is deprecated since version 3.0.0\n" + "----------\n" + "4. WARNING in test1\\E02.java (at line 6)\n" + " e.old();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method old() from the type E01 is deprecated since version 4-SNAPSHOT\n" + "----------\n" + "5. WARNING in test1\\E02.java (at line 7)\n" + @@ -559,7 +559,7 @@ public void testSinceTerminally() { "----------\n" + "1. ERROR in test1\\E02.java (at line 4)\n" + " System.out.println(new E01.Old());\n" + - " ^^^^^^^^^\n" + + " ^^^^^^^\n" + "The constructor E01.Old() has been deprecated since version 1.0 and marked for removal\n" + "----------\n" + "2. ERROR in test1\\E02.java (at line 4)\n" + @@ -569,12 +569,12 @@ public void testSinceTerminally() { "----------\n" + "3. ERROR in test1\\E02.java (at line 5)\n" + " E01 e = new E01();\n" + - " ^^^^^\n" + + " ^^^\n" + "The constructor E01() has been deprecated since version 3.0.0 and marked for removal\n" + "----------\n" + "4. ERROR in test1\\E02.java (at line 6)\n" + " e.old();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method old() from the type E01 has been deprecated since version 4-SNAPSHOT and marked for removal\n" + "----------\n" + "5. ERROR in test1\\E02.java (at line 7)\n" + @@ -1159,7 +1159,7 @@ public class Test { ---------- 2. WARNING in Test.java (at line 4) int zz = nothing(); - ^^^^^^^^^ + ^^^^^^^ The method nothing() from the type C1 is deprecated ---------- """; diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java index 92c076097f9..cbff03cc0b8 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/DeprecatedTest.java @@ -214,7 +214,7 @@ public void test004() { "----------\n" + "2. WARNING in p\\Warning.java (at line 7)\n" + " dateObj.UTC(1,2,3,4,5,6);\n" + - " ^^^^^^^^^^^^^^^^\n" + + " ^^^\n" + "The method UTC(int, int, int, int, int, int) from the type Date is deprecated\n" + "----------\n"); } @@ -696,7 +696,7 @@ public void test015() { "----------\n" + "3. ERROR in p\\M1.java (at line 5)\n" + " m.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type N1.N2.N3 is deprecated\n" + "----------\n", // javac options @@ -748,7 +748,7 @@ public void test016() { "----------\n" + "3. ERROR in p\\M1.java (at line 5)\n" + " m.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type N1.N2.N3 is deprecated\n" + "----------\n", // javac options @@ -844,7 +844,7 @@ public void test018() { "----------\n" + "3. ERROR in p\\M1.java (at line 5)\n" + " m.foo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type N1.N2.N3 is deprecated\n" + "----------\n", // javac options @@ -950,17 +950,17 @@ public void test020() { "----------\n" + "4. ERROR in a.b.c.d.e\\T.java (at line 8)\n" + " f.foo().goo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type Deprecated is deprecated\n" + "----------\n" + "5. ERROR in a.b.c.d.e\\T.java (at line 8)\n" + " f.foo().goo();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method goo() from the type Deprecated is deprecated\n" + "----------\n" + "6. ERROR in a.b.c.d.e\\T.java (at line 9)\n" + " a.b.c.d.Deprecated.bar();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method bar() from the type Deprecated is deprecated\n" + "----------\n", // javac options diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java index df1b0361757..a8af812be9e 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java @@ -7428,4 +7428,51 @@ void k() { "Cannot make a static reference to the non-static field h\n" + "----------\n"); } +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3356 +// Test failures in I-Builds due to less diagnostics being emitted +public void testIssue3356() { + this.runNegativeTest(new String[] { + "X.java", + """ + public class X { + public enum color {black, white} + public void foo(color c) { + switch (c) { + case (color.black): + System.out.println("Black"); + break; + } + } + } + """ + }, + this.complianceLevel < ClassFileConstants.JDK21 ? + "----------\n" + + "1. WARNING in X.java (at line 4)\n" + + " switch (c) {\n" + + " ^\n" + + "The enum constant white needs a corresponding case label in this enum switch on X.color\n" + + "----------\n" + + "2. ERROR in X.java (at line 5)\n" + + " case (color.black):\n" + + " ^^^^^^^^^^^^^\n" + + "Enum constants cannot be surrounded by parenthesis\n" + + "----------\n" + + "3. ERROR in X.java (at line 5)\n" + + " case (color.black):\n" + + " ^^^^^^^^^^^^^\n" + + "The qualified case label X.color.black must be replaced with the unqualified enum constant black\n" + + "----------\n" + : "----------\n" + + "1. WARNING in X.java (at line 4)\n" + + " switch (c) {\n" + + " ^\n" + + "The enum constant white needs a corresponding case label in this enum switch on X.color\n" + + "----------\n" + + "2. ERROR in X.java (at line 5)\n" + + " case (color.black):\n" + + " ^^^^^^^^^^^^^\n" + + "Enum constants cannot be surrounded by parenthesis\n" + + "----------\n"); +} } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java index 53a49775176..186403d8ed8 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocBugsTest.java @@ -3407,7 +3407,7 @@ public void testBug74369deprecated() { "----------\n" + "1. ERROR in X.java (at line 12)\n" + " new Y().bar();\n" + - " ^^^^^\n" + + " ^^^\n" + "The method bar() from the type Y is deprecated\n" + "----------\n", JavacTestOptions.Excuse.EclipseWarningConfiguredAsError diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java index a39edfff1d4..f1dc9dd21ae 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForConstructor.java @@ -69,7 +69,7 @@ public void test001() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z();\n" - + " ^^^\n" + + " ^\n" + "The constructor Z() is deprecated\n" + "----------\n", null, null, JavacTestOptions.Excuse.EclipseHasSomeMoreWarnings); @@ -103,7 +103,7 @@ public void test002() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z(2);\n" - + " ^^^^\n" + + " ^\n" + "The constructor Z(int) is deprecated\n" + "----------\n"); } @@ -138,7 +138,7 @@ public void test003() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z();\n" - + " ^^^\n" + + " ^\n" + "The constructor Z() is deprecated\n" + "----------\n" + "----------\n" diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java index 26758f4cdf1..6d5ebbf65a3 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForInterface.java @@ -991,7 +991,7 @@ public void test060() { "----------\n" + "1. WARNING in X.java (at line 3)\n" + " x.foo();\n" - + " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type IX is deprecated\n" + "----------\n", null, null, JavacTestOptions.Excuse.EclipseHasSomeMoreWarnings); @@ -1083,7 +1083,7 @@ public void test062() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " x.foo(2);\n" - + " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type IX is deprecated\n" + "----------\n"); } @@ -1117,7 +1117,7 @@ public void test063() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " x.foo(2);\n" - + " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type IX is deprecated\n" + "----------\n" + "----------\n" diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java index eaaad327445..7b877b86736 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTestForMethod.java @@ -79,7 +79,7 @@ public void test001() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo();\n" - + " ^^^^^\n" + + " ^^^\n" + "The method foo() from the type Z is deprecated\n" + "----------\n", null, null, JavacTestOptions.Excuse.EclipseHasSomeMoreWarnings); @@ -176,7 +176,7 @@ public void test003() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo(2);\n" + - " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type Z is deprecated\n" + "----------\n" ); @@ -213,7 +213,7 @@ public void test004() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo(2);\n" + - " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type Z is deprecated\n" + "----------\n" + "----------\n" + @@ -281,7 +281,7 @@ public void test005() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo(2);\n" + - " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type Z is deprecated\n" + "----------\n" ); @@ -319,7 +319,7 @@ public void test006() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo(2);\n" + - " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type Z is deprecated\n" + "----------\n" + "----------\n" + @@ -387,7 +387,7 @@ public void test007() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo(2);\n" + - " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type Z is deprecated\n" + "----------\n" ); @@ -424,7 +424,7 @@ public void test008() { "----------\n" + "1. WARNING in X.java (at line 4)\n" + " new Z().foo(2);\n" + - " ^^^^^^\n" + + " ^^^\n" + "The method foo(int) from the type Z is deprecated\n" + "----------\n" + "----------\n" + diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java index efb0c997cca..64746229b0e 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/LambdaExpressionsTest.java @@ -8563,6 +8563,50 @@ private static class B {} """}); } +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2096 +// Textual problem indicator goes wild with lamda +public void testGHIssue2096() { + if (this.complianceLevel < ClassFileConstants.JDK17) + return; // just to standardize messages, we skip below 17. + this.runNegativeTest( + new String[] { + "X.java", + """ + import java.security.AccessController; + import java.security.PrivilegedActionException; + import java.security.PrivilegedExceptionAction; + + public class X { + public static void main(String[] args) throws PrivilegedActionException { + AccessController.doPrivileged((PrivilegedExceptionAction)() -> + { + System.out.println(); + System.out.println();System.out.println();System.out.println();System.out.println(); + System.out.println();System.out.println();System.out.println();System.out.println(); + System.out.println();System.out.println();System.out.println();System.out.println(); + System.out.println();System.out.println();System.out.println();System.out.println(); + System.out.println();System.out.println();System.out.println();System.out.println(); + }); + } + } + """}, + "----------\n" + + "1. WARNING in X.java (at line 7)\n" + + " AccessController.doPrivileged((PrivilegedExceptionAction)() ->\n" + + " ^^^^^^^^^^^^^^^^\n" + + "The type AccessController has been deprecated since version 17 and marked for removal\n" + + "----------\n" + + "2. WARNING in X.java (at line 7)\n" + + " AccessController.doPrivileged((PrivilegedExceptionAction)() ->\n" + + " ^^^^^^^^^^^^\n" + + "The method doPrivileged(PrivilegedExceptionAction) from the type AccessController has been deprecated and marked for removal\n" + + "----------\n" + + "3. ERROR in X.java (at line 7)\n" + + " AccessController.doPrivileged((PrivilegedExceptionAction)() ->\n" + + " ^^^^^\n" + + "This method must return a result of type Boolean\n" + + "----------\n"); +} public static Class testClass() { return LambdaExpressionsTest.class; diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTests21.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTests21.java index efbe1fe2ef9..43041968987 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTests21.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationTests21.java @@ -107,7 +107,7 @@ public void test_totalTypePatternDoesNotAdmitNull() { " case Number n0 -> consumeNumber(n0);\n" + " }\n" + " } catch (NullPointerException npe) {\n" + - " // ignoring the unchecked warning, and expecting the NPE:\n" + + " // Expecting an NPE because selector is null\n" + " System.out.print(npe.getMessage());\n" + " }\n" + " }\n" + @@ -115,6 +115,7 @@ public void test_totalTypePatternDoesNotAdmitNull() { " System.out.print(i);\n" + " }\n" + " void consumeNumber(@NonNull Number n) {\n" + + " System.out.println(\"consumeNumber \");\n" + " System.out.print(n.toString());\n" + " }\n" + " public static void main(String... args) {\n" + @@ -122,14 +123,7 @@ public void test_totalTypePatternDoesNotAdmitNull() { " }\n" + "}\n" }; - runner.expectedCompilerLog = - "----------\n" + - "1. WARNING in X.java (at line 7)\n" + - " case Number n0 -> consumeNumber(n0);\n" + - " ^^\n" + - "Null type safety (type annotations): The expression of type \'Number\' needs unchecked conversion to conform to \'@NonNull Number\'\n" + - "----------\n"; -// runner.expectedOutputString = "Cannot invoke \"Object.toString()\" because \"n\" is null"; + runner.expectedCompilerLog = ""; runner.expectedOutputString = "null"; runner.runConformTest(); } @@ -234,10 +228,10 @@ public void test_totalTypePatternNullableExpression() { }; runner.expectedCompilerLog = "----------\n" + - "1. ERROR in X.java (at line 6)\n" + - " case Number n0 -> consumeNumber(n0);\n" + - " ^^\n" + - "Null type mismatch: required \'@NonNull Number\' but the provided value is inferred as @Nullable\n" + + "1. ERROR in X.java (at line 4)\n" + + " switch (n) {\n" + + " ^\n" + + "Potential null pointer access: this expression has a '@Nullable' type\n" + "----------\n"; runner.runNegativeTest(); } @@ -1244,4 +1238,129 @@ static Stuff match(PatternMatching pm, int v) { """; runner.runNegativeTest(); } + + // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3381 + // [Enhanced Switch][Null] Missing Null pointer access warning with total/unconditional patterns + public void testIssue3381() { + Runner runner = getDefaultRunner(); + runner.testFiles = new String[] { + "X.java", + """ + import org.eclipse.jdt.annotation.Nullable; + + public class X { + void foo() { + @Nullable Integer i = null; + switch (i) { + case Integer ii -> System.out.println(); + } + } + void goo() { + @Nullable Integer i = null; + switch (i) { + default -> System.out.println(); + } + } + } + """ + }; + runner.expectedCompilerLog = + """ + ---------- + 1. ERROR in X.java (at line 6) + switch (i) { + ^ + Null pointer access: The variable i can only be null at this location + ---------- + 2. ERROR in X.java (at line 12) + switch (i) { + ^ + Null pointer access: This expression of type Integer is null but requires auto-unboxing + ---------- + """; + runner.runNegativeTest(); + } + + // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3319 + // [Enhanced Switch][Null] Inconsistent nullness propagation + public void testIssue3319() { + Runner runner = getDefaultRunner(); + runner.testFiles = new String[] { + "X.java", + """ + import org.eclipse.jdt.annotation.NonNull; + + public class X { + static @NonNull Object foo(Object o) { + switch (o) { + case String s -> { + if (o == null) { + System.out.println("o cannot be null at all!"); + } + System.out.println(); + } + default -> { + if (o == null) { + System.out.println("o cannot be null at all!"); + } + System.out.println(); + } + } + return new Object(); + } + + static @NonNull Object foo(X o) { + switch (o) { + case X s -> { + if (o == null) { + System.out.println("o cannot be null at all!"); + } + System.out.println(s); + } + } + return new Object(); + } + } + """ + }; + runner.expectedCompilerLog = + "----------\n" + + "1. ERROR in X.java (at line 7)\n" + + " if (o == null) {\n" + + " ^\n" + + "Null comparison always yields false: The variable o cannot be null at this location\n" + + "----------\n" + + "2. WARNING in X.java (at line 7)\n" + + " if (o == null) {\n" + + " System.out.println(\"o cannot be null at all!\");\n" + + " }\n" + + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + + "Dead code\n" + + "----------\n" + + "3. ERROR in X.java (at line 13)\n" + + " if (o == null) {\n" + + " ^\n" + + "Null comparison always yields false: The variable o cannot be null at this location\n" + + "----------\n" + + "4. WARNING in X.java (at line 13)\n" + + " if (o == null) {\n" + + " System.out.println(\"o cannot be null at all!\");\n" + + " }\n" + + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + + "Dead code\n" + + "----------\n" + + "5. ERROR in X.java (at line 25)\n" + + " if (o == null) {\n" + + " ^\n" + + "Null comparison always yields false: The variable o cannot be null at this location\n" + + "----------\n" + + "6. WARNING in X.java (at line 25)\n" + + " if (o == null) {\n" + + " System.out.println(\"o cannot be null at all!\");\n" + + " }\n" + + " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + + "Dead code\n" + + "----------\n"; + runner.runNegativeTest(); + } } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTests.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTests.java index 1895ac3a690..d013d3e787a 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTests.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTests.java @@ -643,9 +643,9 @@ public void test2062_mergedWith() { public void test2400_state_consistency() { int failures = 0; - long start; + long startNanos; if (MEASURE_PERFORMANCES) { - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); } String header = "state consistency failures: "; for (int l = 0; l < COMBINATION_TESTS_LOOP_NB ; l++) { @@ -721,7 +721,7 @@ public void test2400_state_consistency() { } if (MEASURE_PERFORMANCES) { System.out.println("mergedWith\t\t\t" + COMBINATION_TESTS_LOOP_NB + "\t" + - (System.currentTimeMillis() - start)); + (System.nanoTime() - startNanos) / 1_000_000L); } for (int i = 0; i < State.states.length; i++) { if (State.states[i].symbolic) { diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTransformations.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTransformations.java index bbbe468e944..c0bd34dee39 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTransformations.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullReferenceImplTransformations.java @@ -2765,9 +2765,9 @@ int test(int combinationTestsLoopsNb, boolean skipHighOrderBits) { Map.Entry transition, transitionsSet; this.failuresNb = 0; // reset this.failuresNb = 0; // reset - long start = 0; + long startNanos = 0; if (combinationTestsLoopsNb > 1) { - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); } for (int l = 0; l < combinationTestsLoopsNb ; l++) { transitionsSetsIterator = this.initializedTransitions.entrySet().iterator(); @@ -2795,8 +2795,8 @@ int test(int combinationTestsLoopsNb, boolean skipHighOrderBits) { } } if (combinationTestsLoopsNb > 1) { - System.out.println(this.name + "...\t\t" + combinationTestsLoopsNb + "\t" + - (System.currentTimeMillis() - start)); + System.out.println( + this.name + "...\t\t" + combinationTestsLoopsNb + "\t" + (System.nanoTime() - startNanos) / 1_000_000L); } // PREMATURE optimize test (extraneous allocations and copies) // PREMATURE optimize test (extraneous iterations - undup) @@ -3117,9 +3117,9 @@ int test(int combinationTestsLoopsNb, boolean skipHighOrderBits) { Map.Entry transition, transitionsSet; this.failuresNb = 0; // reset this.failuresNb = 0; // reset - long start = 0; + long startNanos = 0; if (combinationTestsLoopsNb > 1) { - start = System.currentTimeMillis(); + startNanos = System.nanoTime(); } for (int l = 0; l < combinationTestsLoopsNb ; l++) { transitionsSetsIterator = this.initializedTransitions.entrySet().iterator(); @@ -3159,7 +3159,7 @@ int test(int combinationTestsLoopsNb, boolean skipHighOrderBits) { } if (combinationTestsLoopsNb > 1) { System.out.println(this.name + "...\t\t" + combinationTestsLoopsNb + "\t" + - (System.currentTimeMillis() - start)); + (System.nanoTime() - startNanos) / 1_000_000L); } // PREMATURE optimize test (extraneous allocations and copies) // PREMATURE optimize test (extraneous iterations - undup) diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PrimitiveInPatternsTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PrimitiveInPatternsTest.java index c1c57ce5814..037a48dbcbb 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PrimitiveInPatternsTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PrimitiveInPatternsTest.java @@ -29,7 +29,7 @@ public class PrimitiveInPatternsTest extends AbstractRegressionTest9 { static { // TESTS_NUMBERS = new int [] { 1 }; // TESTS_RANGE = new int[] { 1, -1 }; -// TESTS_NAMES = new String[] { "testIssue2936" }; +// TESTS_NAMES = new String[] { "testIssuePrimitivesWithNull" }; } private String extraLibPath; public static Class testClass() { @@ -7335,6 +7335,24 @@ public static void main(String[] args) { "43.0"); } + public void testIssuePrimitivesWithNull() { + runConformTest(new String[] { + "X.java", + """ + public class X { + record R(Integer i) {} + public static int foo(R r) { + if (r instanceof R(int i)) { return i; } + return -1; + } + public static void main(String argv[]) { + System.out.println(foo(new R(null))); + } + } + """ + }, + "-1"); + } public void _testSpec00X() { runNegativeTest(new String[] { "X.java", diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakAnnotatedTests.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakAnnotatedTests.java index 0b3d03ee0d2..3915fcaaf81 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakAnnotatedTests.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ResourceLeakAnnotatedTests.java @@ -13,9 +13,11 @@ *******************************************************************************/ package org.eclipse.jdt.core.tests.compiler.regression; +import java.io.File; import java.util.Map; import junit.framework.Test; import junit.framework.TestSuite; +import org.eclipse.jdt.core.tests.util.Util; import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; @@ -1708,4 +1710,131 @@ public class NotOwningTest { "", options); } +public void testGH3278_OK() { + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportPotentiallyUnclosedCloseable, CompilerOptions.ERROR); + options.put(CompilerOptions.OPTION_ReportUnclosedCloseable, CompilerOptions.ERROR); + runLeakTestWithAnnotations(new String[] { + "annotated/TestNotOwning.java", + """ + package annotated; + + import java.io.Closeable; + import java.io.IOException; + import java.util.ArrayList; + import java.util.List; + + import org.eclipse.jdt.annotation.NotOwning; + import org.eclipse.jdt.annotation.Owning; + + public class TestNotOwning implements Closeable { + private final List toClose = new ArrayList<>(); + + @NotOwning + public T register(@Owning + T closeable) throws IOException { + closeable.close(); + return closeable; + } + + @Override + public void close() throws IOException { + for (Closeable closeable : toClose) { + closeable.close(); // Ignore error handling for this demonstration + } + } + + public static void client() throws IOException { + try (TestNotOwning t = new TestNotOwning()) { + Closeable a = () -> {} ; // produces warning + Closeable b = t.register(() -> {} ); // produces no warning + assert a != null; + assert b != null; + } + } + } + """ + }, + "----------\n" + + "1. ERROR in annotated\\TestNotOwning.java (at line 30)\n" + + " Closeable a = () -> {} ; // produces warning\n" + + " ^\n" + + "Resource leak: \'a\' is never closed\n" + + "----------\n", + options); +} +public void testGH3278_missingAnnotations() { + runLeakTestWithAnnotations(new String[] { + "annotated/TestNotOwning.java", + """ + package annotated; + + import java.io.Closeable; + import java.io.IOException; + import java.util.ArrayList; + import java.util.List; + + import org.eclipse.jdt.annotation.NotOwning; + import org.eclipse.jdt.annotation.Owning; + + public class TestNotOwning implements Closeable { + private final List toClose = new ArrayList<>(); + + @NotOwning + public T register(@Owning + T closeable) throws IOException { + closeable.close(); + return closeable; + } + + @Override + public void close() throws IOException { + for (Closeable closeable : toClose) { + closeable.close(); // Ignore error handling for this demonstration + } + } + } + """ + }, + "", + getCompilerOptions()); + Util.delete(new File(OUTPUT_DIR, "org/eclipse/jdt/annotation/Owning.class".replaceAll("/", File.separator))); + Util.delete(new File(OUTPUT_DIR, "org/eclipse/jdt/annotation/NotOwning.class".replaceAll("/", File.separator))); + + Map options = getCompilerOptions(); + options.put(CompilerOptions.OPTION_ReportPotentiallyUnclosedCloseable, CompilerOptions.ERROR); + options.put(CompilerOptions.OPTION_ReportUnclosedCloseable, CompilerOptions.ERROR); + options.put(CompilerOptions.OPTION_AnnotationBasedResourceAnalysis, CompilerOptions.ENABLED); + runLeakTest(new String[] { + "client/TestingAnnotated.java", + """ + package client; + + import java.io.Closeable; + import java.io.IOException; + + import annotated.TestNotOwning; + + public class TestingAnnotated { + + public static void client() throws IOException { + try (TestNotOwning t = new TestNotOwning()) { + Closeable a = () -> {} ; // produces warning + Closeable b = t.register(() -> {} ); // produces no warning + assert a != null; + assert b != null; + } + } + } + """ + }, + "----------\n" + + "1. ERROR in client\\TestingAnnotated.java (at line 12)\n" + + " Closeable a = () -> {} ; // produces warning\n" + + " ^\n" + + "Resource leak: \'a\' is never closed\n" + + "----------\n", + options, + false); +} } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java index 217c2b21fba..41c57a40c3e 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchPatternTest.java @@ -9587,4 +9587,45 @@ public interface X { "B1 -> B1, B1\n" + "B2 -> B2, B2"); } + + // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3395 + // [Enhanced Switch] ECG generated code hangs + public void testIssue3395() { + runConformTest( + new String[] { + "X.java", + """ + public class X { + public static void main(String[] args) { + for (String s : new String [] { "World", "Check", "Hello", "Null", "Default" }) { + String sel = s.equals("Null") ? null : s; + switch (sel) { + case "World" -> System.out.print("World"); + case String str when s.equals("Check") -> System.out.print("Check"); + case "Hello" -> System.out.print("Hello"); + case null -> System.out.print("Null"); + default -> System.out.print("Default"); + } + System.out.print("--"); + } + System.out.println(""); + for (String s : new String [] { "Default", "Null", "Hello", "Check", "World" }) { + String sel = s.equals("Null") ? null : s; + switch (sel) { + case "World" -> System.out.print("World"); + case String str when s.equals("Check") -> System.out.print("Check"); + case "Hello" -> System.out.print("Hello"); + case null -> System.out.print("Null"); + default -> System.out.print("Default"); + } + System.out.print("--"); + } + System.out.println(""); + } + } + """, + }, + "World--Check--Hello--Null--Default--\n" + + "Default--Null--Hello--Check--World--"); + } } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchTest.java index dadfb333677..e3c4394ad36 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/SwitchTest.java @@ -3539,6 +3539,196 @@ public static void main(String[] args) { "----------\n"); } +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3376 +// Incorrect control flow analysis causes statement subsequent to a switch statement to be flagged unreachable under some circumstances +public void testIssue3376() throws Exception { + if (this.complianceLevel < ClassFileConstants.JDK14) + return; + + this.runConformTest(new String[] { + "SwitchTest.java", + """ + public class SwitchTest { + String unreachableCode(String arg) { + String result; + switch (arg) { + case "a" -> { + result = "A"; + } + default -> throw new RuntimeException(arg); + } + return result; // <- ecj reports "Unreachable code" + } + + String unreachableCode2(String arg) { + String result; + switch (arg) { + case "a" -> result = "A"; + default -> throw new RuntimeException(arg); + } + return result; + } + + String unreachableCode3(String arg) { + String result; + switch (arg) { + case "a" -> { + result = "A"; + break; // <- this makes ecj happy + } + default -> throw new RuntimeException(arg); + } + return result; + } + + public static void main(String[] args) { + System.out.println(new SwitchTest().unreachableCode("a")); + System.out.println(new SwitchTest().unreachableCode2("a")); + System.out.println(new SwitchTest().unreachableCode3("a")); + } + + } + """, + }, + "A\nA\nA"); +} + +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3376 +// Incorrect control flow analysis causes statement subsequent to a switch statement to be flagged unreachable under some circumstances +public void testIssue3376_2() throws Exception { + if (this.complianceLevel < ClassFileConstants.JDK14) + return; + + this.runNegativeTest(new String[] { + "SwitchTest.java", + """ + public class SwitchTest { + String unreachableCode(String arg) { + String result; + switch (arg) { + case "a" : { + result = "A"; + } + default : throw new RuntimeException(arg); + } + return result; + } + } + """, + }, + "----------\n" + + "1. ERROR in SwitchTest.java (at line 10)\n" + + " return result;\n" + + " ^^^^^^^^^^^^^^\n" + + "Unreachable code\n" + + "----------\n"); +} + +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3379 +// [Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch +public void testIssue3379() throws Exception { + if (this.complianceLevel < ClassFileConstants.JDK14) + return; // uses switch rules. + String [] sources = new String[] { + "X.java", + """ + public class X { + public static void main(String[] args) { + Integer i = 42; + switch (i) { + case null -> System.out.println("Null"); + default -> System.out.println("Default: " + i); + } + } + } + """, + }; + + if (this.complianceLevel < ClassFileConstants.JDK21) { + this.runNegativeTest(sources, + "----------\n" + + "1. ERROR in X.java (at line 5)\n" + + " case null -> System.out.println(\"Null\");\n" + + " ^^^^\n" + + "The Java feature 'Pattern Matching in Switch' is only available with source level 21 and above\n" + + "----------\n"); + } else { + this.runConformTest(sources, "Default: 42"); + } +} + +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3379 +// [Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch +public void testIssue3379_2() throws Exception { + if (this.complianceLevel < ClassFileConstants.JDK14) + return; // uses switch rules. + String [] sources = new String[] { + "X.java", + """ + public class X { + public static void main(String[] args) { + Long i = 42l; + switch (i) { + case null -> System.out.println("Null"); + default -> System.out.println("Default: " + i); + } + } + } + """, + }; + + if (this.complianceLevel < ClassFileConstants.JDK21) { + this.runNegativeTest(sources, + "----------\n" + + "1. ERROR in X.java (at line 4)\n" + + " switch (i) {\n" + + " ^\n" + + "Cannot switch on a value of type Long. Only convertible int values, strings or enum variables are permitted\n" + + "----------\n" + + "2. ERROR in X.java (at line 5)\n" + + " case null -> System.out.println(\"Null\");\n" + + " ^^^^\n" + + "The Java feature 'Pattern Matching in Switch' is only available with source level 21 and above\n" + + "----------\n"); + } else { + this.runConformTest(sources, "Default: 42"); + } +} + +// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3379 +// [Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch +public void testIssue3379_3() throws Exception { + if (this.complianceLevel < ClassFileConstants.JDK14) + return; // uses switch rules. + + String [] sources = new String[] { + "X.java", + """ + public class X { + public static void main(String[] args) { + Short i = 42; + switch (i) { + case null -> System.out.println("Null"); + default -> System.out.println("Default: " + i); + } + } + } + """, + }; + + if (this.complianceLevel < ClassFileConstants.JDK21) { + this.runNegativeTest(sources, + "----------\n" + + "1. ERROR in X.java (at line 5)\n" + + " case null -> System.out.println(\"Null\");\n" + + " ^^^^\n" + + "The Java feature 'Pattern Matching in Switch' is only available with source level 21 and above\n" + + "----------\n"); + } else { + this.runConformTest(sources, "Default: 42"); + } +} + public static Class testClass() { return SwitchTest.class; } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/JDIStackFrame.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/JDIStackFrame.java index 4f145d7bec6..55e64d3c158 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/JDIStackFrame.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/JDIStackFrame.java @@ -261,11 +261,11 @@ public boolean run(String codeSnippetClassName) { ObjectReference codeSnippetRunner; try { // Get the code snippet class - long start = System.currentTimeMillis(); + long timeoutNanos = System.nanoTime() + this.timeout * 1_000_000L; List classes = this.jdiVM.classesByName(codeSnippetClassName); while (classes.size() == 0) { try { - Thread.sleep(100); + Thread.sleep(1); } catch (InterruptedException e) { } classes = this.jdiVM.classesByName(codeSnippetClassName); @@ -280,7 +280,7 @@ public boolean run(String codeSnippetClassName) { break; } } - if (classes.size() == 0 && (System.currentTimeMillis()-start) > this.timeout) { + if (classes.size() == 0 && System.nanoTime() > timeoutNanos) { return false; } } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/target/IDEInterface.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/target/IDEInterface.java index 2ec0070adf9..c00e64532e9 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/target/IDEInterface.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/eval/target/IDEInterface.java @@ -48,7 +48,7 @@ public class IDEInterface { * Whether timing info should be printed to stdout */ static final boolean TIMING = false; - long startTime; + private long startNanos; int portNumber = 0; Socket socket; @@ -87,7 +87,7 @@ protected byte[][] getNextClasses() { return new byte[0][]; } if (TIMING) { - this.startTime = System.currentTimeMillis(); + this.startNanos = System.nanoTime(); } try { DataInputStream in = new DataInputStream(this.socket.getInputStream()); @@ -117,7 +117,7 @@ protected boolean getRunFlag() { return false; } if (TIMING) { - this.startTime = System.currentTimeMillis(); + this.startNanos = System.nanoTime(); } try { DataInputStream in = new DataInputStream(this.socket.getInputStream()); @@ -155,7 +155,7 @@ protected void sendResult(Class resultType, Object resultValue) { disconnect(); } if (TIMING) { - System.out.println("Time to run on target is " + (System.currentTimeMillis() - this.startTime) + "ms"); + System.out.println("Time to run on target is " + (System.nanoTime() - this.startNanos) / 1_000_000L + "ms"); } } } diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/runtime/TargetInterface.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/runtime/TargetInterface.java index 57570bd6550..a4639e66b7f 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/runtime/TargetInterface.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/runtime/TargetInterface.java @@ -41,7 +41,7 @@ public class TargetInterface { * Whether timing info should be printed to stdout */ static final boolean TIMING = false; - long sentTime; + private long sentTimeNanos; /** * The connection to the target's ide interface. @@ -59,12 +59,12 @@ public static class Result { * Try as long as the given time (in ms) has not expired. * Use isConnected() to find out if the connection was successful. */ -public void connect(ServerSocket server, int timeout) { +public void connect(ServerSocket server, int timeoutMs) { if (isConnected()) { return; } if (server != null) { - long startTime = System.currentTimeMillis(); + long timeoutNanos = System.nanoTime() + timeoutMs * 1_000_000L; do { try { this.socket = server.accept(); @@ -79,7 +79,7 @@ public void connect(ServerSocket server, int timeout) { } catch (InterruptedException e) { } } - } while (!isConnected() && (System.currentTimeMillis() - startTime) < timeout); + } while (!isConnected() && System.nanoTime() < timeoutNanos); } } /** @@ -135,7 +135,7 @@ public Result getResult() { } } if (TIMING) { - System.out.println("Time to send compiled classes, run on target and get result is " + (System.currentTimeMillis() - this.sentTime) + "ms"); + System.out.println("Time to send compiled classes, run on target and get result is " + (System.nanoTime() - this.sentTimeNanos) / 1_000_000L + "ms"); } Result result = new Result(); result.displayString = toString == null ? null : toString.toCharArray(); @@ -178,7 +178,7 @@ public void sendClasses(boolean mustRun, ClassFile[] classes) throws TargetExcep } } else { if (TIMING) { - this.sentTime = System.currentTimeMillis(); + this.sentTimeNanos = System.nanoTime(); } if (!isConnected()) { throw new TargetException("Connection to the target VM has been lost"); diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/Util.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/Util.java index b555d47edd9..feda6e00a01 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/Util.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/Util.java @@ -1257,14 +1257,15 @@ public static void unzip(String zipPath, String destDirPath) throws IOException } } -public static void waitAtLeast(int time) { - long start = System.currentTimeMillis(); - do { +public static void waitAtLeast(int timeMs) { + long timeoutNanos = System.nanoTime() + timeMs * 1_000_000L; + long remainingNanos; + while ((remainingNanos = timeoutNanos - System.nanoTime()) > 0) { try { - Thread.sleep(time); - } catch (InterruptedException e) { + Thread.sleep(remainingNanos / 1_000_000L); + } catch (InterruptedException ignored) { } - } while ((System.currentTimeMillis() - start) < time); + } } /** diff --git a/org.eclipse.jdt.core.tests.model/JCL/build.xml b/org.eclipse.jdt.core.tests.model/JCL/build.xml index b0a9d1ae8c5..535b051afd4 100644 --- a/org.eclipse.jdt.core.tests.model/JCL/build.xml +++ b/org.eclipse.jdt.core.tests.model/JCL/build.xml @@ -19,18 +19,6 @@ -