[Bug 291667] java/jcommon: fix build with jdk21

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 14 Dec 2025 19:22:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291667

            Bug ID: 291667
           Summary: java/jcommon: fix build with jdk21
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: olgeni@FreeBSD.org
          Reporter: ronald@FreeBSD.org
          Assignee: olgeni@FreeBSD.org
             Flags: maintainer-feedback?(olgeni@FreeBSD.org)

Created attachment 266195
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266195&action=edit
git diff to remove target version

The build was pinned to a jdk version that is not supported by jdk21.
Fix that by just compiling to the JAVA_DEFAULT version.
This is needed for bug #272855.

I have a ports commit bit. If you approve I can commit the patch.

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