Community
Participate
Working Groups
When trying to evaluate the following code for(int i = 0; i < 10; i++) { System.getProperties().put(i, i+1); } it gives you the following error Evaluation failed. Reason(s): Syntax error, insert ";" to complete BlockStatements This was working in Eclipse 2020-06.
Gayan, what is the first release where it does NOT work?
Not sure Andrey, i had a 2020-06 in my work laptop and it worked there.
Its caused by Bug549952
@Gayan, As this is a regression, Will you be able to work on this for 4.19 RC1?
Working on a solution right now.
I'm working on a AST based solution where we can rewrite the snippet with return statement based on if its needed or not. I see it less error prone and easy to fix by anyone who doesn't have much knowledge on source scanner. And we don't need to duplicate parser/scanner logics at different places as well. What do you think @Sarika ?
That will be great!
@Sarika i found a regression while running the full eval suite which is introduced by Bug567801. Its a one line fix, shall i fix with this issue or open a separate bug ?
(In reply to Gayan Perera from comment #8) > @Sarika i found a regression while running the full eval suite which is > introduced by Bug567801. Its a one line fix, shall i fix with this issue or > open a separate bug ? Ideally separated one.
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/176435
Reported https://bugs.eclipse.org/bugs/show_bug.cgi?id=571271
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/176435 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=f38ee05024a1cf02c9fb7858c4c714b69baeb253
Good for RC1. Thanks Gayan!