android-framework-23: FTBFS with OpenJDK 17 due to com.sun.javadoc removal

Bug #2056085 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-framework-23 (Debian)
New
Unknown
android-framework-23 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

android-framework-23 fails to build with OpenJDK 17, Doclava no longer
works due to the removal of the com.sun.javadoc API:

  :android:stubs
  Putting task artifact state for task ':android:stubs' into context took 0.013 secs.
  :uiautomator:processResources (Thread[Task worker for ':' Thread 2,5,main]) started.
  :uiautomator:processResources
  Putting task artifact state for task ':uiautomator:processResources' into context took 0.0 secs.
  Up-to-date check for task ':android:stubs' took 0.004 secs. It is not up-to-date because:
    No history is available.
  file or directory '/<<PKGBUILDDIR>>/debian/out/uiautomator/src/main/resources', not found
  Skipping task ':uiautomator:processResources' as it has no source files and no previous output files.
  :uiautomator:processResources NO-SOURCE
  :uiautomator:processResources (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 0.011 secs.
  :uiautomator:debianMavenPom (Thread[Task worker for ':' Thread 2,5,main]) started.
  :uiautomator:debianMavenPom
  Putting task artifact state for task ':uiautomator:debianMavenPom' into context took 0.0 secs.
  file or directory '/<<PKGBUILDDIR>>/debian/out/android/src/forStubs/java', not found
  Up-to-date check for task ':uiautomator:debianMavenPom' took 0.001 secs. It is not up-to-date because:
    No history is available.
          Generating pom file /<<PKGBUILDDIR>>/debian/out/uiautomator/build/debian/uiautomator.pom
  :uiautomator:debianMavenPom (Thread[Task worker for ':' Thread 2,5,main]) completed. Took 0.104 secs.
          Loading the Maven rules...
          Passing through com.google.doclava:doclava:jar:debian
          Passing through com.google.guava:guava:jar:debian
          Passing through com.google.guava:guava-parent:jar:debian
          Passing through com.google.jsilver:jsilver:jar:debian
          Passing through org.antlr:antlr-runtime:jar:3.x
          Passing through org.antlr:antlr-master:jar:3.x
          Passing through org.ccil.cowan.tagsoup:tagsoup:jar:debian
          Passing through org.jsr-305:jsr305:jar:0.x
  Error: Unable to initialize main class com.google.doclava.Doclava
  Caused by: java.lang.NoClassDefFoundError: com/sun/javadoc/Doc
  :android:stubs FAILED
  :android:stubs (Thread[Task worker for ':',5,main]) completed. Took 0.478 secs.

  FAILURE: Build failed with an exception.

Tags: ftbfs

Related branches

Changed in android-framework-23 (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge test (pass)

Vladimir Petko (vpa1977)
tags: added: ftbfs
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package android-framework-23 - 6.0.1+r72-6ubuntu1

---------------
android-framework-23 (6.0.1+r72-6ubuntu1) noble; urgency=medium

  * d/build.gradle: use openjdk-8 to invoke doclava (LP: #2056085).

 -- Vladimir Petko <email address hidden> Thu, 07 Mar 2024 14:06:18 +1300

Changed in android-framework-23 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.