Skip to content

Commit

Permalink
fix: Fixing regression in CtQueryImpl caused by lambda names in Java …
Browse files Browse the repository at this point in the history
…21 (#5469)
  • Loading branch information
I-Al-Istannen authored Sep 27, 2023
1 parent 0c78369 commit ac76933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spoon/reflect/visitor/chain/CtQueryImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ protected boolean isAcceptableType(Object input) {
protected void onCallbackSet(String stackClass, String stackMethodName, Class<?> callbackClass, String callbackMethod, int nrOfParams, int idxOfInputParam) {
this.cceStacktraceClass = stackClass;
this.cceStacktraceMethodName = stackMethodName;
if (callbackClass.getName().contains("$$Lambda$")) {
if (callbackClass.getName().contains("$$Lambda")) {
//lambda expressions does not provide runtime information about type of input parameter
//clear it now. We can detect input type from first ClassCastException
this.expectedClass = null;
Expand Down

0 comments on commit ac76933

Please sign in to comment.