[Bug 291629] math/jacop: fix build on jdk11 and jdk17

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 13 Dec 2025 14:24:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291629

            Bug ID: 291629
           Summary: math/jacop: fix build on jdk11 and jdk17
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: ronald@FreeBSD.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Created attachment 266155
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266155&action=edit
git diff to fix build and pin to supported jdks

The errors in jdk11 and jdk17 are related to javadoc.

SimpleArrayList.java:187: error: tag not supported in HTML5: tt
[00:01:31] [ERROR]      * Returns <tt>true</tt> if this list contains the
specified element.

The attached patch fixes this.

On jdk21 it gives a different error so only enabled jdk 8 11 and 17 in the
Makefile.

Error on jdk21:
[00:00:43] [INFO] Compiling 30 source files to
/wrkdirs/usr/ports/math/jacop/work/jacop-4.8.0/target/classes at 1765635688496
[00:00:44] [ERROR] error:
[00:00:44] [INFO]   bad constant pool index: 0 at pos: 48454
[00:00:44] [INFO]      while compiling: <no file>
[00:00:44] [INFO]         during phase: globalPhase=<no phase>,
enteringPhase=<some phase>


I have a ports commit bit, so if you approve I can commit the patch.

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