Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Explicitly set byte-buddy class loading strategy to pre-JDK11 default. #137

Merged
merged 1 commit into from
Apr 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/grpc/protobuf-jackson/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# SOFTWARE.
#

version = 0.1.1
version = 0.2.1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
import net.bytebuddy.description.type.TypeDefinition;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.dynamic.DynamicType;
import net.bytebuddy.dynamic.loading.ClassLoadingStrategy;
import net.bytebuddy.jar.asm.ClassWriter;

/**
Expand Down Expand Up @@ -265,7 +266,9 @@ private static <T extends Message> void buildOrFindMarshaller(
marshaller =
buddy
.make()
.load(TypeSpecificMarshaller.class.getClassLoader())
.load(
TypeSpecificMarshaller.class.getClassLoader(),
ClassLoadingStrategy.Default.INJECTION)
.getLoaded()
.getConstructor(prototype.getClass())
.newInstance(prototype);
Expand Down