Skip to content

Commit 2ddae4f

Browse files
zlglbcmssmr3lucas-myx
authored
fix: HttpRequestDecoder NoClassDefFoundError (#548)
* fix bug issue 547 * Update NettyModuleInstrumentation.java --------- Co-authored-by: Mark Zhang <[email protected]> Co-authored-by: Lucas <[email protected]>
1 parent 01a82db commit 2ddae4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arex-instrumentation/netty/arex-netty-v4/src/main/java/io/arex/inst/netty/v4/NettyModuleInstrumentation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import java.util.List;
88

9+
import static io.arex.inst.extension.matcher.HasClassNameMatcher.hasClassNamed;
910
import static java.util.Collections.singletonList;
1011

1112
@AutoService(ModuleInstrumentation.class)
@@ -16,7 +17,7 @@ public NettyModuleInstrumentation() {
1617
* because of the differences in MANIFEST.MF files between different versions of Netty
1718
* so we can't set bundle-Name for compatibility
1819
*/
19-
super("netty-v4");
20+
super("netty-v4", hasClassNamed("io.netty.handler.codec.http.HttpRequestDecoder"));
2021
}
2122

2223
@Override

0 commit comments

Comments
 (0)