https://bz.apache.org/bugzilla/show_bug.cgi?id=68947

            Bug ID: 68947
           Summary: `tomcat-embed-core` `10.1.23` requires Java 11 but
                    includes Java 21 sources
           Product: Tomcat 10
           Version: 10.1.23
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Packaging
          Assignee: dev@tomcat.apache.org
          Reporter: jackpgr...@gmail.com
  Target Milestone: ------

The documentation says Tomcat 10 requires Java 11 -
https://tomcat.apache.org/whichversion.html

The `MANIFEST.mf` of the `tomcat-embed-core-10.1.23.jar` also suggests Java 11:
```
X-Compile-Source-JDK: 11
X-Compile-Target-JDK: 11
```

But some of the included `.class` files have a bytecode level of 66 - i.e. Java
21 - which means they can't be used with Java 11. This was flagged via the
Maven enforcer plugin, using `tomcat-embed-core` as a dependency.

For example - `org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.class`:
`javap -verbose org/apache/tomcat/util/net/openssl/panama/OpenSSLContext.class`
`major version: 66`

This problem doesn't exist (neither does that class) in `10.1.20`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to