Skip to content

Commit

Permalink
Update ByteBuddy (#3254)
Browse files Browse the repository at this point in the history
* Update ByteBuddy

* spotless
  • Loading branch information
iNikem authored Jun 11, 2021
1 parent 6733b50 commit 31d3f2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencyManagement/dependencyManagement.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ val DEPENDENCY_SETS = listOf(
),
DependencySet(
"net.bytebuddy",
"1.10.18",
"1.11.2",
listOf("byte-buddy", "byte-buddy-agent")
),
DependencySet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ private void ensureModuleCanReadHelperModules(JavaModule target) {

if (!target.canRead(helperModule)) {
log.debug("Adding module read from {} to {}", target, helperModule);
target.modify(
ClassInjector.UsingInstrumentation.redefineModule(
AgentInstaller.getInstrumentation(),
target,
Collections.singleton(helperModule),
Collections.emptyMap(),
Collections.emptyMap(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ public final TypePool typePool(ClassFileLocator classFileLocator, ClassLoader cl
return createCachingTypePool(loaderHash, loaderRef, classFileLocator);
}

@Override
public final TypePool typePool(
ClassFileLocator classFileLocator, ClassLoader classLoader, String name) {
return typePool(classFileLocator, classLoader);
}

private TypePool.CacheProvider createCacheProvider(
int loaderHash, WeakReference<ClassLoader> loaderRef) {
return new SharedResolutionCacheAdapter(loaderHash, loaderRef, sharedResolutionCache);
Expand Down

0 comments on commit 31d3f2f

Please sign in to comment.