Skip to content

Commit

Permalink
Systematic maintenance of jclMinX.jar and .src.zip (#3223)
Browse files Browse the repository at this point in the history
+ remove jclMin < 1.8 and adjust ClasspathTests accordingly
+ created jclMin projects from existing jclMin*src.zip
+ added module-info to all modular jcl
+ declared --patch-module in .classpath & build.xml
+ minor clean-up
+ regenerate all jclMin
+ did NOT re-generate converterJclMin - need to check diffs first
+ fix source attachment for jclFull1.8.jar

Fixes #2727
  • Loading branch information
stephan-herrmann authored Nov 3, 2024
1 parent a5915b7 commit 1150dc0
Show file tree
Hide file tree
Showing 521 changed files with 6,135 additions and 9 deletions.
6 changes: 6 additions & 0 deletions JCL/jclMin1.8/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions JCL/jclMin1.8/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jclMin1.8</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions JCL/jclMin1.8/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
15 changes: 15 additions & 0 deletions JCL/jclMin1.8/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
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.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/io/Serializable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.io;

public interface Serializable {
}
5 changes: 5 additions & 0 deletions JCL/jclMin1.8/src/java/lang/CharSequence.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package java.lang;

public interface CharSequence {
int length();
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Class.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class Class<T> {
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/CloneNotSupportedException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class CloneNotSupportedException extends Exception {
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Comparable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public interface Comparable<T> {
}
6 changes: 6 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Deprecated.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package java.lang;
import java.lang.annotation.*;
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Deprecated {
}
14 changes: 14 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Enum.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package java.lang;

public abstract class Enum<T extends Enum<T>> implements Comparable<T>, java.io.Serializable {
private static final long serialVersionUID = 2L;

protected Enum(String name, int ordinal) {
}
public final String name() {
return null;
}
public final int ordinal() {
return 0;
}
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Error.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class Error extends Throwable {
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Exception.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class Exception extends Throwable {
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/IllegalMonitorStateException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class IllegalMonitorStateException extends RuntimeException {
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/InterruptedException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class InterruptedException extends Exception {
}
34 changes: 34 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Object.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package java.lang;

public class Object {

public Object() {
}
protected Object clone() throws CloneNotSupportedException {
return null;
}
public boolean equals (Object obj) {
return false;
}
protected void finalize () throws Throwable {
}
public final Class<? extends Object> getClass() {
return null;
}
public int hashCode() {
return -1;
}
public final void notify() throws IllegalMonitorStateException {
}
public final void notifyAll() throws IllegalMonitorStateException {
}
public String toString () {
return null;
}
public final void wait () throws IllegalMonitorStateException, InterruptedException {
}
public final void wait (long millis) throws IllegalMonitorStateException, InterruptedException {
}
public final void wait (long millis, int nanos) throws IllegalMonitorStateException, InterruptedException {
}
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/RuntimeException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class RuntimeException extends Exception {
}
5 changes: 5 additions & 0 deletions JCL/jclMin1.8/src/java/lang/String.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package java.lang;

public class String implements Comparable<String>, CharSequence {
public int length() { return 0; }
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/Throwable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class Throwable {
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/Annotation.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang.annotation;
public interface Annotation {

}
6 changes: 6 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/Documented.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Documented {
}
13 changes: 13 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/ElementType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package java.lang.annotation;
public enum ElementType {
ANNOTATION_TYPE,
CONSTRUCTOR,
FIELD,
LOCAL_VARIABLE,
METHOD,
PACKAGE,
PARAMETER,
TYPE,
TYPE_USE,
TYPE_PARAMETER,
}
6 changes: 6 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/Inherited.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Inherited {
}
7 changes: 7 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/Retention.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Retention {
RetentionPolicy value();
}
6 changes: 6 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/RetentionPolicy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package java.lang.annotation;
public enum RetentionPolicy {
CLASS,
SOURCE,
RUNTIME
}
7 changes: 7 additions & 0 deletions JCL/jclMin1.8/src/java/lang/annotation/Target.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package java.lang.annotation;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Target {
ElementType[] value();
}
3 changes: 3 additions & 0 deletions JCL/jclMin1.8/src/java/lang/invoke/LambdaMetafactory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package java.lang.invoke;
public class LambdaMetafactory {
}
37 changes: 37 additions & 0 deletions JCL/jclMin1.8/src/java/lang/invoke/MethodHandle.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*******************************************************************************
* Copyright (c) 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package java.lang.invoke;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

public abstract class MethodHandle {
@Target(METHOD)
@Retention(RUNTIME)
@interface PolymorphicSignature {
}

@PolymorphicSignature
public final native Object invoke(Object... args) throws Throwable;

@PolymorphicSignature
public final native Object invokeExact(Object... args) throws Throwable;

public native Object invokeWithArguments(Object... arguments)
throws Throwable;

public native boolean isVarargsCollector();

public native MethodHandle asType(MethodType newType);
}
21 changes: 21 additions & 0 deletions JCL/jclMin1.8/src/java/lang/invoke/MethodHandles.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package java.lang.invoke;

public class MethodHandles {
public static final class Lookup {
public MethodHandle findVirtual(Class<?> refc, String name,
MethodType type) throws NoSuchMethodException,
IllegalAccessException {
return null;
}

public MethodHandle findStatic(Class<?> refc, String name,
MethodType type) throws NoSuchMethodException,
IllegalAccessException {
return null;
}
}

public static Lookup lookup() {
return null;
}
}
16 changes: 16 additions & 0 deletions JCL/jclMin1.8/src/java/lang/invoke/MethodType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package java.lang.invoke;

public final class MethodType {
public static MethodType methodType(Class<?> rtype, Class<?> ptype0,
Class<?>... ptypes) {
return null;
}

public static MethodType methodType(Class<?> rtype) {
return null;
}

public static MethodType genericMethodType(int objectArgCount) {
return null;
}
}
19 changes: 19 additions & 0 deletions JCL/jclMin1.8/src/java/util/Collection.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package java.util;

public interface Collection<T> {
public Iterator<T> iterator();
public int size();
public T get(int index);
public boolean addAll(Collection<T> c);
public T[] toArray(T[] o);
}
17 changes: 17 additions & 0 deletions JCL/jclMin1.8/src/java/util/Iterator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package java.util;

public interface Iterator<E> {
boolean hasNext();
E next();
void remove();
}
4 changes: 4 additions & 0 deletions JCL/jclMin1.8/src/java/util/List.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.util;

public interface List<E> extends Collection<E> {
}
9 changes: 9 additions & 0 deletions JCL/jclMin1.8/src/java/util/Map.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package java.util;

public interface Map<K,V> {
public interface Entry<K,V> {}

V get(Object key);
V put(K key, V value);
V remove(Object key);
}
11 changes: 11 additions & 0 deletions JCL/jclMin10/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-10">
<attributes>
<attribute name="module" value="true"/>
<attribute name="patch-module" value="java.base=/jclMin10/src"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions JCL/jclMin10/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jclMin10</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions JCL/jclMin10/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Loading

0 comments on commit 1150dc0

Please sign in to comment.