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
When using org.mockito.Mockito.when as static import and on the first line of a method Eclipse will show an error: Syntax error on token "RestrictedIdentifierWhen"
When the when is not the first line of the method no error .
When using the fqn of the when method is used also no error.
When changing to java version 20 there are no compile errors. bug.zip
See the small attached maven project.
Environment:
new install of eclipse-java-2023-09-R-linux-gtk-x86_64 with the Java 21 Support for Eclipse 2023-09 (4.29) plugin installed from the market place
The text was updated successfully, but these errors were encountered:
When using org.mockito.Mockito.when as static import and on the first line of a method Eclipse will show an error:
Syntax error on token "RestrictedIdentifierWhen"
for example (part of the code):
When the when is not the first line of the method no error .
When using the fqn of the when method is used also no error.
When changing to java version 20 there are no compile errors.
bug.zip
See the small attached maven project.
Environment:
new install of eclipse-java-2023-09-R-linux-gtk-x86_64 with the Java 21 Support for Eclipse 2023-09 (4.29) plugin installed from the market place
The text was updated successfully, but these errors were encountered: