We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An IndexOutBoundException occurs when a lambda has no arguments.
Bug position: JDTCommentBuilder.java:461
@Override public <T> void visitCtLambda(CtLambda<T> e) { if (e.getExpression() != null) { CtParameter<?> lastParameter = e.getParameters().get(e.getParameters().size() - 1); // IndexOutBoundException if (comment.getPosition().getSourceStart() > lastParameter.getPosition().getSourceEnd()) { e.getExpression().addComment(comment); } else { e.addComment(comment); } } else if (e.getBody() != null) { e.addComment(comment); } }
No response
public static void main(String[] args) { Thread t = new Thread(() -> /* comments here */ System.out.println("Thread " + Thread.currentThread().getId() + " is running")); t.start(); }
10.4.2
11
win10
The text was updated successfully, but these errors were encountered:
Do you have example code that triggers this bug?
Sorry, something went wrong.
Added example code
No branches or pull requests
Describe the bug
An IndexOutBoundException occurs when a lambda has no arguments.
Bug position: JDTCommentBuilder.java:461
Source code you are trying to analyze/transform
No response
Source code for your Spoon processing
Actual output
No response
Expected output
No response
Spoon Version
10.4.2
JVM Version
11
What operating system are you using?
win10
The text was updated successfully, but these errors were encountered: