[Bug 292647] java/jfreechart: support building with jdk21

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 22 Jan 2026 14:53:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292647

            Bug ID: 292647
           Summary: java/jfreechart: support building 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
             Flags: maintainer-feedback?(olgeni@FreeBSD.org)
          Assignee: olgeni@FreeBSD.org

Created attachment 267382
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267382&action=edit
git diff to fix build with any jdk

Compilation with JDK21 failed with:
[00:00:11]     [javac] error: Source option 6 is no longer supported. Use 8 or
later.
[00:00:11]     [javac] error: Target option 6 is no longer supported. Use 8 or
later.

With the attached patch it builds fine.

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

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