Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950479 - dev-java/batik-1.18-r1:failed (compile phase) with jdk-1.8: class file has wrong version 55.0, should be 52.0 (org/mozilla/javascript/ClassShutter.class)
Summary: dev-java/batik-1.18-r1:failed (compile phase) with jdk-1.8: class file has wr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-03-02 20:13 UTC by Toralf Förster
Modified: 2025-03-03 11:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.80 KB, text/plain)
2025-03-02 20:13 UTC, Toralf Förster
Details
dev-java:batik-1.18-r1:20250302-200517.log (dev-java:batik-1.18-r1:20250302-200517.log,18.22 KB, text/plain)
2025-03-02 20:13 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,78.41 KB, application/x-xz)
2025-03-02 20:13 UTC, Toralf Förster
Details
environment (environment,107.89 KB, text/plain)
2025-03-02 20:13 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.35 KB, application/x-xz)
2025-03-02 20:13 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,32.16 KB, application/x-xz)
2025-03-02 20:13 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,20.87 KB, application/x-xz)
2025-03-02 20:13 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,81.40 KB, application/x-xz)
2025-03-02 20:13 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.80 KB, application/x-xz)
2025-03-02 20:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2025-03-02 20:13:20 UTC
too long lines were shrinked:

Note: Recompile with -Xlint:unchecked for details.
 * Compiling batik-script
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath batik-constants.jar:batik-i18n.jar:batik-test.jar:batik-util.jar:batik-awt-util.jar:batik-css.jar:batik-ext.jar:batik-xml.jar:batik-dom.jar:batik-parser.jar:batik-svg-dom.jar:batik-anim.jar:batik-gvt.jar:/usr/share/jacl/lib/j
batik-script/src/main/java/org/apache/batik/script/rhino/RhinoClassShutter.java:21: error: cannot access ClassShutter
import org.mozilla.javascript.ClassShutter;
                             ^
  bad class file: /usr/share/rhino/lib/rhino.jar(org/mozilla/javascript/ClassShutter.class)
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened-20250222-171007

  UNMASKED:

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.442_p06"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 19.1.7
llvm-config: 19.1.7
Python 3.12.9
go version go1.24.0 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems)
  [3]   ruby34 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1
  [2]   rust-bin-1.85.0
  [3]   rust-1.85.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.26_p4 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.14_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21 


  HEAD of ::gentoo
commit 9130aaa7c850091feee4d2e9f5c6ec3a91d8b5a3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Mar 2 18:33:39 2025 +0000

    2025-03-02 18:33:39 UTC

emerge -qpvO =dev-java/batik-1.18-r1
[ebuild     U ] dev-java/batik-1.18-r1 [1.18] USE="-doc -source -test -verify-sig"
Comment 1 Toralf Förster gentoo-dev 2025-03-02 20:13:21 UTC
Created attachment 920143 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-02 20:13:21 UTC
Created attachment 920144 [details]
dev-java:batik-1.18-r1:20250302-200517.log
Comment 3 Toralf Förster gentoo-dev 2025-03-02 20:13:23 UTC
Created attachment 920145 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2025-03-02 20:13:24 UTC
Created attachment 920146 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-03-02 20:13:24 UTC
Created attachment 920147 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-02 20:13:25 UTC
Created attachment 920148 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-02 20:13:26 UTC
Created attachment 920149 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-02 20:13:28 UTC
Created attachment 920150 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2025-03-02 20:13:29 UTC
Created attachment 920151 [details]
temp.tar.xz
Comment 10 Volkmar W. Pogatzki 2025-03-03 09:30:03 UTC
Problem is that I forget testing reverse dependencies with Java 8.

Not clear how to proceed. 

Either commits 68eaf93f54 (dev-java/batik-1.18-r1) 
and d25f15426a (dev-java/bsf-2.4.0-r6) should be reverted and wait for final removal of Java 8 freom ::gentoo

Or, also dev-java/batik and dev-java/bsf should be lifted to jre-11:*

libreoffice-9999 already has 'java? ( >=virtual/jre-11 )' and is not affected.
Comment 11 Larry the Git Cow gentoo-dev 2025-03-03 11:09:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ff9c6a8ea06256f8b1cc2d56bd25dab49383e95

commit 5ff9c6a8ea06256f8b1cc2d56bd25dab49383e95
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2025-03-03 10:29:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-03 11:09:23 +0000

    dev-java/batik: lift dependency to >=virtual/jdk-11:* #950479
    
    Closes: https://bugs.gentoo.org/950479
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/batik/{batik-1.18-r1.ebuild => batik-1.18-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dc7b3b7af0f9813e562fc810f722a2f06ee1e9e

commit 3dc7b3b7af0f9813e562fc810f722a2f06ee1e9e
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2025-03-03 10:33:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-03 11:09:24 +0000

    dev-java/bsf: lift dependency to >=virtual/jdk-11:* #950479
    
    Bug: https://bugs.gentoo.org/950479
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/40862
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/bsf/{bsf-2.4.0-r6.ebuild => bsf-2.4.0-r7.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd8da3bad7e4c149502cb8cda2e472d4c133fbf4

commit dd8da3bad7e4c149502cb8cda2e472d4c133fbf4
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2025-03-03 08:50:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-03 11:09:23 +0000

    dev-java/rhino: sort variables, explain dependency changes in 1.8.0
    
    For rhino-1.8.0, dependencies had to be lifted to >=virtual/jdk-11:*
    and >=virtual/jre-11:*. Using jre-11:* now produces class file version
    55.0 instead of 52.0 which leads to bug #950479 and others.
    
    This commit adds comments explaining why the higher java version is
    needed.
    
    Bug: https://bugs.gentoo.org/950479
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/rhino/rhino-1.8.0.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)