Unverified Commit 2b274f3c authored by 吴晟's avatar 吴晟 Committed by GitHub
Browse files

Make JDK 12 works. (#3197)

parent b091c0ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@
        <jetty.version>9.4.2.v20170220</jetty.version>
        <grpc.version>1.14.0</grpc.version>
        <guava.version>20.0</guava.version>
        <bytebuddy.version>1.9.2</bytebuddy.version>
        <bytebuddy.version>1.9.16</bytebuddy.version>
        <disruptor.version>3.3.6</disruptor.version>
        <wiremock.version>2.6.0</wiremock.version>
        <netty-tcnative-boringssl-static.version>2.0.7.Final</netty-tcnative-boringssl-static.version>
+2 −2
Original line number Diff line number Diff line
@@ -90,8 +90,8 @@ public class BootstrapInstrumentBoost {
        }

        /**
         * This strategy is no longer available after Java 11.
         * Inject the classes into bootstrap class loader.
         * Inject the classes into bootstrap class loader by using Unsafe Strategy.
         * ByteBuddy adapts the sun.misc.Unsafe and jdk.internal.misc.Unsafe automatically.
         */
        ClassInjector.UsingUnsafe.ofBootLoader().injectRaw(classesTypeMap);
        agentBuilder = agentBuilder.enableUnsafeBootstrapInjection();
+5 −2
Original line number Diff line number Diff line
# Setup java agent
1. Agent is available for JDK 1.6 - 11.
1. Agent is available for JDK 1.6 - 12.
1. Find `agent` folder in SkyWalking release package
1. Set `agent.service_name` in `config/agent.config`. Could be any String in English.
1. Set `collector.backend_service` in `config/agent.config`. Default point to `127.0.0.1:11800`, only works for local backend.
@@ -20,7 +20,10 @@ The agent release dist is included in Apache [official release](http://skywalkin
         apm-feign-default-http-9.x.jar
         apm-httpClient-4.x-plugin.jar
         .....
    +--- logs
    +-- optional-plugins
         apm-gson-2.x-plugin.jar
         .....
    +-- logs
    skywalking-agent.jar
```