Bug#1011468: FTBFS with OpenJDK 17 due to com.sun.javadoc removal
Pierre Gruet
pgt at debian.org
Mon May 23 17:16:32 BST 2022
Source: barclay
Version: 2.1.0-3.1
Severity: important
Tags: ftbfs bookworm sid
User: debian-java at lists.debian.org
Usertags: default-java17
barclay fails to build with Java 17 because it uses classes from the
com.sun.javadoc package which was removed:
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocWorkUnit.java:3: error: package com.sun.javadoc does not exist
import com.sun.javadoc.ClassDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocWorkUnit.java:25: error: cannot find symbol
private final ClassDoc classDoc; // javadoc documentation for clazz
^
symbol: class ClassDoc
location: class DocWorkUnit
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocWorkUnit.java:50: error: cannot find symbol
final ClassDoc classDoc,
^
symbol: class ClassDoc
location: class DocWorkUnit
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocWorkUnit.java:112: error: cannot find symbol
public ClassDoc getClassDoc() { return classDoc; }
^
symbol: class ClassDoc
location: class DocWorkUnit
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:5: error: package com.sun.javadoc does not exist
import com.sun.javadoc.ClassDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:6: error: package com.sun.javadoc does not exist
import com.sun.javadoc.RootDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:94: error: cannot find symbol
private RootDoc rootDoc; // The javadoc root doc
^
symbol: class RootDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:105: error: cannot find symbol
public static boolean start(final RootDoc rootDoc) throws IOException {
^
symbol: class RootDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:139: error: cannot find symbol
protected boolean startProcessDocs(final RootDoc rootDoc) throws IOException {
^
symbol: class RootDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:256: error: cannot find symbol
private void processDocs(final RootDoc rootDoc) {
^
symbol: class RootDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:316: error: cannot find symbol
public RootDoc getRootDoc() { return rootDoc; }
^
symbol: class RootDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:361: error: cannot find symbol
public boolean includeInDocs(final DocumentedFeature documentedFeature, final ClassDoc classDoc, final Class<?> clazz) {
^
symbol: class ClassDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:412: error: cannot find symbol
final ClassDoc classDoc,
^
symbol: class ClassDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:443: error: cannot find symbol
private Class<? extends Object> getClassForClassDoc(final ClassDoc doc) {
^
symbol: class ClassDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:570: error: cannot find symbol
public ClassDoc getClassDocForClass(final Class<?> clazz) {
^
symbol: class ClassDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/WDLDoclet.java:3: error: package com.sun.javadoc does not exist
import com.sun.javadoc.ClassDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/WDLDoclet.java:24: error: package com.sun.javadoc does not exist
public static boolean start(final com.sun.javadoc.RootDoc rootDoc) throws IOException {
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/WDLDoclet.java:29: error: cannot find symbol
public boolean includeInDocs(final DocumentedFeature documentedFeature, final ClassDoc classDoc, final Class<?> clazz) {
^
symbol: class ClassDoc
location: class WDLDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/WDLDoclet.java:57: error: package com.sun.javadoc does not exist
final com.sun.javadoc.ClassDoc classDoc,
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:3: error: package com.sun.javadoc does not exist
import com.sun.javadoc.ClassDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:4: error: package com.sun.javadoc does not exist
import com.sun.javadoc.FieldDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:398: error: cannot find symbol
private FieldDoc getFieldDocForCommandLineArgument(
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:597: error: cannot find symbol
private FieldDoc getFieldDoc(final ClassDoc classDoc, final String argumentFieldName) {
^
symbol: class ClassDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:597: error: cannot find symbol
private FieldDoc getFieldDoc(final ClassDoc classDoc, final String argumentFieldName) {
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:3: error: package com.sun.javadoc does not exist
import com.sun.javadoc.FieldDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:4: error: package com.sun.javadoc does not exist
import com.sun.javadoc.PackageDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:5: error: package com.sun.javadoc does not exist
import com.sun.javadoc.ProgramElementDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:16: error: cannot find symbol
protected static Class<?> getClassForDoc(ProgramElementDoc doc) throws ClassNotFoundException {
^
symbol: class ProgramElementDoc
location: class DocletUtils
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:20: error: cannot find symbol
protected static Field getFieldForFieldDoc(FieldDoc fieldDoc) {
^
symbol: class FieldDoc
location: class DocletUtils
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:35: error: cannot find symbol
protected static String getClassName(ProgramElementDoc doc, boolean binaryName) {
^
symbol: class ProgramElementDoc
location: class DocletUtils
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/BashTabCompletionDoclet.java:3: error: package com.sun.javadoc does not exist
import com.sun.javadoc.ClassDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/BashTabCompletionDoclet.java:4: error: package com.sun.javadoc does not exist
import com.sun.javadoc.RootDoc;
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/BashTabCompletionDoclet.java:259: error: cannot find symbol
public static boolean start(RootDoc rootDoc) {
^
symbol: class RootDoc
location: class BashTabCompletionDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/BashTabCompletionDoclet.java:404: error: cannot find symbol
public boolean includeInDocs(final DocumentedFeature documentedFeature, final ClassDoc classDoc, final Class<?> clazz) {
^
symbol: class ClassDoc
location: class BashTabCompletionDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/BashTabCompletionDoclet.java:416: error: cannot find symbol
final ClassDoc classDoc,
^
symbol: class ClassDoc
location: class BashTabCompletionDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/argparser/ArgumentDefinition.java:182: warning: [deprecation] newInstance() in Class has been deprecated
field.set(callerArguments, field.getType().newInstance());
^
where T is a type-variable:
T extends Object declared in class Class
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/utils/Utils.java:162: warning: [deprecation] WordUtils in org.apache.commons.lang3.text has been deprecated
.map(line -> WordUtils.wrap(line, width))
^
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocWorkUnit.java:187: warning: [deprecation] newInstance() in Class has been deprecated
return commandLineProperties.programGroup().newInstance();
^
where T is a type-variable:
T extends Object declared in class Class
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/HelpDoclet.java:294: error: cannot find symbol
for (final ClassDoc classDoc : rootDoc.classes()) {
^
symbol: class ClassDoc
location: class HelpDoclet
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:196: warning: [deprecation] newInstance() in Class has been deprecated
final Object argumentContainer = workUnit.getClazz().newInstance();
^
where T is a type-variable:
T extends Object declared in class Class
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:389: error: cannot find symbol
final FieldDoc fieldDoc = getFieldDocForCommandLineArgument(currentWorkUnit, argDef);
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:404: error: cannot find symbol
final ClassDoc declaringClassDoc = getDoclet().getRootDoc().classNamed(declaringClassTypeName);
^
symbol: class ClassDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:414: error: cannot find symbol
final FieldDoc fieldDoc = getFieldDoc(declaringClassDoc, argDef.getUnderlyingField().getName());
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:598: error: cannot find symbol
for (final FieldDoc fieldDoc : classDoc.fields(false)) {
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:614: error: cannot find symbol
final ClassDoc typeDoc = getDoclet().getRootDoc().classNamed(fieldDoc.type().qualifiedTypeName());
^
symbol: class ClassDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:619: error: cannot find symbol
FieldDoc result = getFieldDoc(typeDoc, argumentFieldName);
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:821: error: cannot find symbol
final ClassDoc doc = this.getDoclet().getClassDocForClass(enumClass);
^
symbol: class ClassDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DefaultDocWorkUnitHandler.java:836: error: cannot find symbol
for (final FieldDoc fieldDoc : doc.fields(false)) {
^
symbol: class FieldDoc
location: class DefaultDocWorkUnitHandler
/<<PKGBUILDDIR>>/src/main/java/org/broadinstitute/barclay/help/DocletUtils.java:36: error: cannot find symbol
PackageDoc containingPackage = doc.containingPackage();
^
symbol: class PackageDoc
location: class DocletUtils
45 errors
5 warnings
:compileJava FAILED
More information about the pkg-java-maintainers
mailing list