Details

      Description

      BlockHound cannot instrument native methods on JDK 13+

      15:04:47,001 FATAL (Thread-0) [Infinispan-TEST] Throwable was not caught in thread Thread[Thread-0,5,main] - exception is: java.lang.IllegalStateException: The instrumentation have failed.
      It looks like you're running on JDK 13+.
      You need to add '-XX:+AllowRedefinitionToAddDeleteMethods' JVM flag.
      See https://github.com/reactor/BlockHound/issues/33 for more info.
      

      Maven profile java13-test is supposed to add flag -XX:+AllowRedefinitionToAddDeleteMethods to the fork JVM, but it doesn't work because the activation condition is incomplete (missing a ) after the comma).

      The profile also tries to add the flag when the java8-test profile is selected from the command line, so adding the missing ) is not enough.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.berindei Dan Berindei
                Reporter:
                dan.berindei Dan Berindei
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: