Skip to content

Commit

Permalink
提交1.0.11,兼容1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmanpushcart committed Feb 26, 2018
1 parent b65a253 commit a9d9885
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.alibaba.jvm.sandbox.api.event.BeforeEvent;
import com.alibaba.jvm.sandbox.api.event.Event;
import com.alibaba.jvm.sandbox.api.filter.ExtFilter;
import com.alibaba.jvm.sandbox.api.filter.Filter;
import com.alibaba.jvm.sandbox.api.listener.EventListener;
import com.alibaba.jvm.sandbox.core.CoreConfigure;
Expand Down Expand Up @@ -55,7 +56,7 @@ protected Class<?> watching(final Class<?> targetClass,
final ClassLoader loader = newTestClassLoader();
final byte[] srcByteCodeArray = toByteArray(targetClass);

final ExtFilterMatcher matcher = new ExtFilterMatcher(new Filter() {
final ExtFilterMatcher matcher = new ExtFilterMatcher(ExtFilter.ExtFilterFactory.make(new Filter() {
@Override
public boolean doClassFilter(final int access,
final String javaClassName,
Expand All @@ -73,7 +74,7 @@ public boolean doMethodFilter(final int access,
final String[] annotationTypeJavaClassNameArray) {
return javaMethodName.equals(targetJavaMethodName);
}
});
}));


final Enhancer enhancer = new EventEnhancer();
Expand Down

0 comments on commit a9d9885

Please sign in to comment.