git: 46d9cce47b48 - main - java/aparapi: pin to openjdk8-17

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Mon, 15 Dec 2025 19:26:17 UTC
The branch main has been updated by ronald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=46d9cce47b48a300661256543894c3d589f7f20c

commit 46d9cce47b48a300661256543894c3d589f7f20c
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-15 19:22:01 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-15 19:26:04 +0000

    java/aparapi: pin to openjdk8-17
    
    Does not build with JDK21.
        [javac] error: Source option 7 is no longer supported. Use 8 or later.
        [javac] error: Target option 7 is no longer supported. Use 8 or later.
    
    NB: maybe the build can be easily fixed with jdk21, but that would need more
    time to investigate and my test setup does not have amd64.
    If you use this port, please try and test.
    
    PR:     272855
    Approved-by:    no maintainer
---
 java/aparapi/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/java/aparapi/Makefile b/java/aparapi/Makefile
index 9fcbe5a6506d..60b02797d324 100644
--- a/java/aparapi/Makefile
+++ b/java/aparapi/Makefile
@@ -17,6 +17,7 @@ RUN_DEPENDS=	opencl>=0:devel/opencl
 
 USES=		dos2unix java:ant,run
 USE_GITHUB=	yes
+JAVA_VERSION=	8 11 17
 
 ONLY_FOR_ARCHS=	amd64 powerpc64 powerpc64le