Bug 263601

Summary: java/bouncycastle15 only builds with Java 8
Product: Ports & Packages Reporter: wcarson.bugzilla
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description wcarson.bugzilla 2022-04-27 02:21:16 UTC
There is no JAVA_VERSION defined in the Makefile. I tried various values (8, 11, and 17) and the only one that worked is 8.

diff --git a/java/bouncycastle15/Makefile b/java/bouncycastle15/Makefile
index 472af5a4a0..a84bc41546 100644
--- a/java/bouncycastle15/Makefile
+++ b/java/bouncycastle15/Makefile
@@ -26,6 +26,7 @@ CPE_VENDOR=   ${PORTNAME}
 CPE_PRODUCT=   legion-of-the-bouncy-castle-java-crytography-api
 USE_ANT=       yes
 USE_JAVA=      yes
+JAVA_VERSION=  8

 MAKE_ARGS=     -f \
                ant/jdk${JDKNVERSION}+.xml