Skip to content

Commit

Permalink
Supply type pool to type building.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Oct 30, 2019
1 parent b7a99a3 commit 6c0abe6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion byte-buddy-dep/src/main/java/net/bytebuddy/build/Plugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.dynamic.ClassFileLocator;
import net.bytebuddy.dynamic.DynamicType;
import net.bytebuddy.dynamic.TypeResolutionStrategy;
import net.bytebuddy.dynamic.scaffold.inline.MethodNameTransformer;
import net.bytebuddy.implementation.LoadedTypeInitializer;
import net.bytebuddy.matcher.ElementMatcher;
Expand Down Expand Up @@ -3634,7 +3635,7 @@ public Summary apply(Source source, Target target, List<? extends Plugin.Factory
sink.retain(element);
failed.put(typeDescription, errored);
} else if (!applied.isEmpty()) {
DynamicType dynamicType = builder.make();
DynamicType dynamicType = builder.make(TypeResolutionStrategy.Disabled.INSTANCE, typePool);
listener.onTransformation(typeDescription, applied);
for (Map.Entry<TypeDescription, LoadedTypeInitializer> entry : dynamicType.getLoadedTypeInitializers().entrySet()) {
if (entry.getValue().isAlive()) {
Expand Down
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.bytebuddy</groupId>
Expand Down Expand Up @@ -75,6 +76,7 @@
<version.plugin.jxr>2.5</version.plugin.jxr>
<version.plugin.buildhelp>1.12</version.plugin.buildhelp>
<version.plugin.jar>3.0.2</version.plugin.jar>
<version.plugin.site>3.8.2</version.plugin.site>
<version.plugin.exec>1.6.0</version.plugin.exec>
<version.plugin.plugin>3.6.0</version.plugin.plugin>
<version.plugin.release>2.5.3</version.plugin.release>
Expand Down Expand Up @@ -321,6 +323,11 @@
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${version.plugin.site}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit 6c0abe6

Please sign in to comment.