[Bug 292216] comms/rxtx: does not compile with jdk11+

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 06 Jan 2026 13:07:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292216

            Bug ID: 292216
           Summary: comms/rxtx: does not compile with jdk11+
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ronald@FreeBSD.org
                CC: james@elstone.net
                CC: james@elstone.net
             Flags: maintainer-feedback?(james@elstone.net)

Created attachment 266866
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266866&action=edit
git diff to pin openjdk8

This does not compile for me with JDK11 and later.
Even when I apply this patch it gives errors.

--- configure.orig      2026-01-06 12:42:07 UTC
+++ configure
@@ -22106,7 +22106,7 @@ if test "$CC" = "gcc" || test "$CC"="egcs"; then
        *)
                find_java_native_include jni_md.h
                JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST)
-jni"
-               JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/
-O -source 1.3 -target 1.3"
+               JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/
-O"
                JAR="\$(JPATH)/bin/jar"
                JAVADOC="\$(JPATH)/bin/javadoc"
                CFLAGS=$CFLAGS" -D_BSD_SOURCE"

For now I would like to pin the version to openjdk8. If somebody comes up with
a fix we can always remove the pinning.

NB: I have a ports commit bit. If you approve I can commit the change.

-- 
You are receiving this mail because:
You are the assignee for the bug.