You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following code to get the signature of callees in method invocations.
for (CtInvocationelement : elements) {
Stringcallee_sig = element.getExecutable().getSignature();
}
However for the lambda expression like this below, it returns a parse() instead of parse(java.nio.file.Path,java.nio.charset.Charset,org.apache.commons.csv.CSVFormat).
I tried element.getExecutable().getParameters() and it returns an empty list.
Is this behaviour expected? What is the correct way to get this method signature?
Describe the bug
I use the following code to get the signature of callees in method invocations.
However for the lambda expression like this below, it returns a
parse()
instead ofparse(java.nio.file.Path,java.nio.charset.Charset,org.apache.commons.csv.CSVFormat)
.I tried
element.getExecutable().getParameters()
and it returns an empty list.Is this behaviour expected? What is the correct way to get this method signature?
Source code you are trying to analyze/transform
Source code for your Spoon processing
Actual output
parse()
Expected output
Spoon Version
10.4.2
JVM Version
openjdk version "11.0.22-ea" 2024-01-16 OpenJDK Runtime Environment (build 11.0.22-ea+6-post-Debian-1) OpenJDK 64-Bit Server VM (build 11.0.22-ea+6-post-Debian-1, mixed mode, sharing)
What operating system are you using?
Debian GNU/Linux trixie/sid x86_64
The text was updated successfully, but these errors were encountered: