prestodb/airlift

Support build on Java 11

Closed this issue · 1 comments

Problem

Current implementation does not allow to build project using Java 11.

Issue 1

Module stats has missing dependency:

        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
        </dependency>

Solution: Add missing dependency.

Issue 2

Module jmx uses sun.management.Agent class in com.facebook.airlift.jmx.JmxAgent8:

import com.google.common.net.HostAndPort;
import sun.management.Agent;
import sun.management.jmxremote.ConnectorBootstrap;

Solution: cherry-pick airlift@cb70a83 or implement similar solution.

also let's add another github actions for java 11 so we don't break it again.