Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support source=11 in EztDoclet #10041

Open
niloc132 opened this issue Nov 9, 2024 · 0 comments
Open

Support source=11 in EztDoclet #10041

niloc132 opened this issue Nov 9, 2024 · 0 comments

Comments

@niloc132
Copy link
Member

niloc132 commented Nov 9, 2024

The update to passing --release=11 to javac for the rest of the project did not work for the ezt doclet, since the source that runs on is JRE emulation. Note that the javadoc task at this time still takes a source attribute, not release, but it is processed as javac handles release.

doc/ $ ant emul-doc
Buildfile: /home/colin/workspace/gwt/doc/build.xml

emul-doc:
     [echo] Building JRE emulation summary
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Note: JRE emulation summary Doclet Option : /home/colin/workspace/gwt/build/out/doc/emul-ezt/fragment.html
  [javadoc] Loading source files for package java.beans...
  [javadoc] Loading source files for package java.io...
  [javadoc] Loading source files for package java.lang...
  [javadoc] Loading source files for package java.lang.annotation...
  [javadoc] Loading source files for package java.lang.reflect...
  [javadoc] Loading source files for package java.math...
  [javadoc] Loading source files for package java.nio.charset...
  [javadoc] Loading source files for package java.security...
  [javadoc] Loading source files for package java.sql...
  [javadoc] Loading source files for package java.text...
  [javadoc] Loading source files for package java.util...
  [javadoc] Loading source files for package java.util.concurrent...
  [javadoc] Loading source files for package java.util.concurrent.atomic...
  [javadoc] Loading source files for package java.util.function...
  [javadoc] Loading source files for package java.util.logging...
  [javadoc] Loading source files for package java.util.stream...
  [javadoc] Constructing Javadoc information...
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/beans/Beans.java:16: error: package exists in another module: java.desktop
  [javadoc] package java.beans;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/InputStream.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/DataOutput.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/BufferedWriter.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/Closeable.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/Writer.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/IOException.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/OutputStream.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/HasSerializableTypeMarker.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/OutputStreamWriter.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/ByteArrayInputStream.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/IOUtils.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/UncheckedIOException.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/Externalizable.java:17: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/FilterOutputStream.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/FilterInputStream.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/StringReader.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/ByteArrayOutputStream.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/UnsupportedEncodingException.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/PrintStream.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/Reader.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/DataInput.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/Serializable.java:16: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/io/Flushable.java:20: error: package exists in another module: java.base
  [javadoc] package java.io;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/ThreadLocal.java:19: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Math.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/SuppressWarnings.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/IllegalStateException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/JsException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/StringBuilder.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Character.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Object.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/SecurityException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/HasCloneableTypeMarker.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Byte.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/CloneNotSupportedException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/IndexOutOfBoundsException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Appendable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Exception.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/AssertionError.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/StringBuffer.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Enum.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Long.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Iterable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Comparable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/StackTraceElement.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Number.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/StrictMath.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/InterruptedException.java:19: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Record.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Short.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Double.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/AbstractStringBuilder.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/String.java:17: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/CharSequence.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Integer.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/AutoCloseable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/NegativeArraySizeException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/ArrayIndexOutOfBoundsException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Override.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/RuntimeException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/IllegalArgumentException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/FunctionalInterface.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/ArithmeticException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Class.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/HasCharSequenceTypeMarker.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Boolean.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Float.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/NullPointerException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/StringIndexOutOfBoundsException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Error.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/ArrayStoreException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Throwable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/UnsupportedOperationException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Void.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/CaseMapper.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Cloneable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Deprecated.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/System.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/HasComparableTypeMarker.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/SafeVarargs.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/Runnable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/ClassCastException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/NumberFormatException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Documented.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Retention.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Annotation.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Repeatable.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/AnnotationFormatError.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Target.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/ElementType.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/RetentionPolicy.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Inherited.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/Native.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/AnnotationTypeMismatchException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/annotation/IncompleteAnnotationException.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.annotation;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/reflect/Array.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.reflect;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/lang/reflect/Type.java:16: error: package exists in another module: java.base
  [javadoc] package java.lang.reflect;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/math/Logical.java:35: error: package exists in another module: java.base
  [javadoc] package java.math;
  [javadoc] ^
  [javadoc] /home/colin/workspace/gwt/user/super/com/google/gwt/emul/java/math/Multiplication.java:35: error: package exists in another module: java.base
  [javadoc] package java.math;
  [javadoc] ^
  [javadoc] 100 errors

BUILD FAILED
/home/colin/workspace/gwt/doc/build.xml:150: Javadoc returned 1

Total time: 2 seconds

Tried passing these args to the javadoc tool, but they are not enough to allow javadoc to run with a higher level:

          <arg value="--system" />
          <arg value="none" />
          <arg value="--patch-module" />
          <arg value="java.base=${gwt.root}/user/super/com/google/gwt/emul:${gwt.root}/dev/core/super/com/google/gwt/dev/jjs/intrinsic:${gwt.root}/doc/javadoc" />
          <arg value="--add-reads" />
          <arg value="java.base=ALL-UNNAMED" />

This isn't an urgent issue to fix, but someday javadoc will drop support for source=8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant