![JAR search and dependency download from the Maven repository](/logo.png)
io.opentelemetry.javaagent.testing.common.Java8BytecodeBridge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-testing-common Show documentation
Show all versions of opentelemetry-testing-common Show documentation
OpenTelemetry Javaagent testing commons
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.testing.common;
import io.opentelemetry.context.Context;
/**
* A helper for scala and kotlin test code, since those tests are compiled to Java 6 bytecode, and
* so they cannot access methods that rely on new Java 8 bytecode features such as calling a static
* interface methods.
*/
public final class Java8BytecodeBridge {
/** Calls {@link Context#current()}. */
public static Context currentContext() {
return Context.current();
}
private Java8BytecodeBridge() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy