Skip to content

Commit

Permalink
Merge pull request #672 from bytedance/fix-netty
Browse files Browse the repository at this point in the history
fix netty lib
  • Loading branch information
yoloyyh authored Aug 8, 2024
2 parents 6956642 + b4c5396 commit 968251c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rasp/jvm/JVMAgent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jar {
}

shadowJar {
relocate 'org.apache.commons', 'rasp.org.apache.commons'
relocate 'io.netty', 'agent.io.netty'
relocate 'org.apache.commons', 'agent.org.apache.commons'
relocate 'META-INF/native/libnetty', 'META-INF/native/librasp_netty'
}

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static Object transform(Object object) {

try {
return FieldUtils.readField(object, "fd", true);
} catch (IllegalAccessException e) {
} catch (Throwable e) {
SmithAgentLogger.exception(e);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static Object transform(Object object) {

try {
return FieldUtils.readField(object, "pid", true);
} catch (IllegalAccessException e) {
} catch (Throwable e) {
SmithAgentLogger.exception(e);
}

Expand Down

0 comments on commit 968251c

Please sign in to comment.