aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml-lite-agent/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-08-03 09:07:07 +0000
committerPJ Fanning <fanningpj@apache.org>2022-08-03 09:07:07 +0000
commit7752e61c901966bc7962155643c0da17ae697566 (patch)
tree44c50a0ea208455fed52edaab52e526ca4bda9e6 /poi-ooxml-lite-agent/src
parente16da8059c395c88fb0459de363f39ade1955257 (diff)
downloadpoi-7752e61c901966bc7962155643c0da17ae697566.tar.gz
poi-7752e61c901966bc7962155643c0da17ae697566.zip
compile issue after byte-buddy upgrade
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml-lite-agent/src')
-rw-r--r--poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java b/poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java
index a1658b17fb..d53bfd1267 100644
--- a/poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java
+++ b/poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java
@@ -34,9 +34,12 @@ import java.util.regex.Pattern;
import java.util.stream.Stream;
import net.bytebuddy.agent.builder.AgentBuilder;
+import net.bytebuddy.description.type.TypeDescription;
+import net.bytebuddy.dynamic.DynamicType;
import net.bytebuddy.implementation.MethodDelegation;
import net.bytebuddy.implementation.SuperMethodCall;
import net.bytebuddy.matcher.ElementMatchers;
+import net.bytebuddy.utility.JavaModule;
import org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl;
/**
@@ -59,11 +62,10 @@ public class OOXMLLiteAgent {
new AgentBuilder.Default()
// .with(AgentBuilder.Listener.StreamWriting.toSystemOut())
.type(named("org.apache.xmlbeans.impl.schema.XsbReader"))
- .transform((builder, type, cl, m) ->
- builder
- .constructor(ElementMatchers.any())
- .intercept(MethodDelegation.to(XsbLogger.class).andThen(SuperMethodCall.INSTANCE))
- )
+ .transform(((builder, typeDescription, classLoader, module, protectionDomain) ->
+ builder
+ .constructor(ElementMatchers.any())
+ .intercept(MethodDelegation.to(XsbLogger.class).andThen(SuperMethodCall.INSTANCE))))
.installOn(inst);
}