Преглед на файлове

compile issue after byte-buddy upgrade

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903206 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_3
PJ Fanning преди 1 година
родител
ревизия
7752e61c90
променени са 1 файла, в които са добавени 7 реда и са изтрити 5 реда
  1. 7
    5
      poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java

+ 7
- 5
poi-ooxml-lite-agent/src/main/java/org/apache/poi/ooxml/lite/OOXMLLiteAgent.java Целия файл

import java.util.stream.Stream; import java.util.stream.Stream;


import net.bytebuddy.agent.builder.AgentBuilder; 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.MethodDelegation;
import net.bytebuddy.implementation.SuperMethodCall; import net.bytebuddy.implementation.SuperMethodCall;
import net.bytebuddy.matcher.ElementMatchers; import net.bytebuddy.matcher.ElementMatchers;
import net.bytebuddy.utility.JavaModule;
import org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl; import org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl;


/** /**
new AgentBuilder.Default() new AgentBuilder.Default()
// .with(AgentBuilder.Listener.StreamWriting.toSystemOut()) // .with(AgentBuilder.Listener.StreamWriting.toSystemOut())
.type(named("org.apache.xmlbeans.impl.schema.XsbReader")) .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); .installOn(inst);
} }



Loading…
Отказ
Запис