Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919464 - dev-java/caffeine-2.6.2 - ./.../SerializationProxy.java:71: error: method expireAfter in class Caffeine<K,V> cannot be applied to given types;
Summary: dev-java/caffeine-2.6.2 - ./.../SerializationProxy.java:71: error: method exp...
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
: 922116 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-08 13:37 UTC by Toralf Förster
Modified: 2024-04-11 07:40 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.70 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
dev-java:caffeine-2.6.2:20231208-123235.log (dev-java:caffeine-2.6.2:20231208-123235.log,4.74 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,164.33 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
environment (environment,90.69 KB, text/plain)
2023-12-08 13:37 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.26 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.05 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,2.18 KB, application/x-xz)
2023-12-08 13:37 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,237.40 KB, text/plain)
2023-12-08 13:37 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 2023-12-08 13:37:42 UTC
./com/github/benmanes/caffeine/base/UnsafeAccess.java:75: warning: Unsafe is internal proprietary API and may be removed in a future release
        Constructor<Unsafe> unsafeConstructor = Unsafe.class.getDeclaredConstructor();
                                                ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:81: warning: Unsafe is internal proprietary API and may be removed in a future release
    return (Unsafe) field.get(null);
            ^
./com/github/benmanes/caffeine/cache/SerializationProxy.java:71: error: method expireAfter in class Caffeine<K,V> cannot be applied to given types;
      builder.expireAfter(expiry);
             ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20231206-050505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.73.0 *
GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.382_p05"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 51cf20d341e948fd0d53518c0dd20472dbdf13ee
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 8 11:46:55 2023 +0000

    2023-12-08 11:46:55 UTC

emerge -qpvO dev-java/caffeine
[ebuild  N    ] dev-java/caffeine-2.6.2  USE="-doc -source -test"
Comment 1 Toralf Förster gentoo-dev 2023-12-08 13:37:43 UTC
Created attachment 878352 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-08 13:37:44 UTC
Created attachment 878353 [details]
dev-java:caffeine-2.6.2:20231208-123235.log
Comment 3 Toralf Förster gentoo-dev 2023-12-08 13:37:45 UTC
Created attachment 878354 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-08 13:37:47 UTC
Created attachment 878355 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-08 13:37:47 UTC
Created attachment 878356 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-08 13:37:48 UTC
Created attachment 878357 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-08 13:37:49 UTC
Created attachment 878358 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-08 13:37:50 UTC
Created attachment 878359 [details]
qlist-info.txt
Comment 9 Silvio 2024-01-14 16:25:10 UTC
*** Bug 922116 has been marked as a duplicate of this bug. ***
Comment 10 Silvio 2024-01-21 08:43:13 UTC
Any news about this bug?
Comment 11 Thomas 2024-01-24 14:15:57 UTC
Hi, I've had the same issue. After switching to openjdk-bin-17 (making it the system-vm), the compilation was successful, despite a few warnings:


>>> Emerging (1 of 1) dev-java/caffeine-2.6.2::gentoo
 * caffeine-2.6.2-sources.jar BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                      [ ok ]
 * Using: openjdk-bin-17
>>> Unpacking source...
>>> Unpacking caffeine-2.6.2-sources.jar to /dev/shm/portage/dev-java/caffeine-2.6.2/work
>>> Source unpacked in /dev/shm/portage/dev-java/caffeine-2.6.2/work
>>> Preparing source in /dev/shm/portage/dev-java/caffeine-2.6.2/work ...
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/dev-java/caffeine-2.6.2/work ...
>>> Source configured.
>>> Compiling source in /dev/shm/portage/dev-java/caffeine-2.6.2/work ...
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/jsr305/lib/jsr305.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
./com/github/benmanes/caffeine/base/UnsafeAccess.java:22: warning: Unsafe is internal proprietary API and may be removed in a future release
import sun.misc.Unsafe;
               ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:38: warning: Unsafe is internal proprietary API and may be removed in a future release
  public static final Unsafe UNSAFE;
                      ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:63: warning: Unsafe is internal proprietary API and may be removed in a future release
  static Unsafe load(String openJdk, String android) throws NoSuchMethodException,
         ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:68: warning: Unsafe is internal proprietary API and may be removed in a future release
      field = Unsafe.class.getDeclaredField(openJdk);
              ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:72: warning: Unsafe is internal proprietary API and may be removed in a future release
        field = Unsafe.class.getDeclaredField(android);
                ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:75: warning: Unsafe is internal proprietary API and may be removed in a future release
        Constructor<Unsafe> unsafeConstructor = Unsafe.class.getDeclaredConstructor();
                    ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:75: warning: Unsafe is internal proprietary API and may be removed in a future release
        Constructor<Unsafe> unsafeConstructor = Unsafe.class.getDeclaredConstructor();
                                                ^
./com/github/benmanes/caffeine/base/UnsafeAccess.java:81: warning: Unsafe is internal proprietary API and may be removed in a future release
    return (Unsafe) field.get(null);
            ^
9 warnings
updated manifest
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-java/caffeine-2.6.2

>>> Install dev-java/caffeine-2.6.2 into /dev/shm/portage/dev-java/caffeine-2.6.2/image
>>> Completed installing dev-java/caffeine-2.6.2 into /dev/shm/portage/dev-java/caffeine-2.6.2/image

 * Final size of build directory: 6560 KiB (6.4 MiB)
 * Final size of installed tree:   680 KiB
Comment 12 Larry the Git Cow gentoo-dev 2024-04-11 07:40:18 UTC
The bug has been closed via the following commit(s):

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

commit 9ec506c42d10700ffe1edfb93923e14bfd55a2fb
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2023-12-08 15:19:07 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-04-11 07:38:32 +0000

    dev-java/caffeine: min java 11
    
    Closes: https://bugs.gentoo.org/919464
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/34180
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../caffeine/{caffeine-2.6.2.ebuild => caffeine-2.6.2-r1.ebuild}     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)