-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayIndexOutOfBoundsException being thrown. #30
Comments
I was able to reproduce this issue with the following:
The
My workaround is to ignore these cases: --- a/src/main/java/gr/gousiosg/javacg/stat/DynamicCallManager.java
+++ b/src/main/java/gr/gousiosg/javacg/stat/DynamicCallManager.java
@@ -81,12 +81,14 @@ public class DynamicCallManager {
while (matcher.find()) {
int bootIndex = Integer.parseInt(matcher.group(1));
BootstrapMethod bootMethod = boots[bootIndex];
+ if (bootMethod.getBootstrapArguments().length > 1) {
int calledIndex = bootMethod.getBootstrapArguments()[CALL_HANDLE_INDEX_ARGUMENT];
String calledName = getMethodNameFromHandleIndex(cp, calledIndex);
String callerName = method.getName();
dynamicCallers.put(calledName, callerName);
}
}
+ } |
pombredanne
pushed a commit
to pombredanne/java-callgraph
that referenced
this issue
May 29, 2024
* Added updated patch file w/ Naive List gen
juliendevelopment
pushed a commit
to juliendevelopment/java-callgraph
that referenced
this issue
Jan 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seeing this exception when running the javacg-0.1-SNAPSHOT-static.jar on my project's jar.
Can you please explain under what scenario can this be coming?
The text was updated successfully, but these errors were encountered: