Skip to content

Some Scala based instrumentation tests fail on Java 11+ with Scala 2.13 #483

@jasonjkeller

Description

@jasonjkeller

We’re seeing failures with some of our Scala related instrumentation tests (e.g. com.nr.instrumentation.akka22.test.AkkaTest) that appear to be happening only on Java 11+, which I think are likely due to this bug with Scala 2.13: scala/bug#12340

We’re seeing the same failure:

java.lang.IllegalAccessError: Update to static final field akka.pattern.package$.MODULE$ attempted from a different method (<init>) than the initializer method <clinit> 

This can be repro’d locally against main by running the following if you remove the test annotations (e.g. Java11IncompatibleTest) that were added to prevent them from running on Java 11+:

./gradlew -Ptest11 :instrumentation:akka-2.2:test --tests "com.nr.instrumentation.akka22.test.AkkaTest" --stacktrace

The following PR was submitted to prevent those tests from running on Java 11+ but we should revisit this at some point in the future to see if we can get these instrumentation tests running on Java 11+ again.
#481

Metadata

Metadata

Labels

bugSomething isn't working as designed/intendedscala

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions