New issue
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
Missing error message for generics on var #600
Comments
|
Cool. Looks like ecj ignores the generic part on |
simfis
pushed a commit
to simfis/eclipse.jdt.core
that referenced
this issue
Jan 30, 2023
…pe arguments. Fixes eclipse-jdt#600
3 tasks
simfis
pushed a commit
to simfis/eclipse.jdt.core
that referenced
this issue
Jan 30, 2023
…pe arguments. Fixes eclipse-jdt#600
simfis
pushed a commit
to simfis/eclipse.jdt.core
that referenced
this issue
Jan 30, 2023
…pe arguments. Fixes eclipse-jdt#600
simfis
pushed a commit
to simfis/eclipse.jdt.core
that referenced
this issue
Jan 31, 2023
…pe arguments. Fixes eclipse-jdt#600
simfis
pushed a commit
to simfis/eclipse.jdt.core
that referenced
this issue
Feb 16, 2023
…pe arguments. Fixes eclipse-jdt#600
srikanth-sankaran
pushed a commit
to simfis/eclipse.jdt.core
that referenced
this issue
Jun 19, 2023
…pe arguments. Fixes eclipse-jdt#600
jarthana
pushed a commit
to jarthana/eclipse.jdt.core
that referenced
this issue
Jun 27, 2023
…clipse-jdt#600 (eclipse-jdt#672) * Create compile error in case 'var' reserved type name is used with type arguments. Fixes eclipse-jdt#600 * Create additional test to cover variable declaration in a basic 'for' statement * Fix changes made to LocalDeclaration.java by removing return statement to restore normal flow of control after adding the problem. Add new tests for enhanced for statement and try-with-resources statement. * Adjust @SInCE version for new IProblem constant --------- Co-authored-by: Simon Fischer <simon@controlsurface.anonaddy.com> Co-authored-by: Srikanth Sankaran <srikanth.sankaran@advantest.com>
mpalat
pushed a commit
to mpalat/eclipse.jdt.core
that referenced
this issue
Jul 6, 2023
…clipse-jdt#600 (eclipse-jdt#672) * Create compile error in case 'var' reserved type name is used with type arguments. Fixes eclipse-jdt#600 * Create additional test to cover variable declaration in a basic 'for' statement * Fix changes made to LocalDeclaration.java by removing return statement to restore normal flow of control after adding the problem. Add new tests for enhanced for statement and try-with-resources statement. * Adjust @SInCE version for new IProblem constant --------- Co-authored-by: Simon Fischer <simon@controlsurface.anonaddy.com> Co-authored-by: Srikanth Sankaran <srikanth.sankaran@advantest.com>
subyssurendran666
pushed a commit
to subyssurendran666/eclipse.jdt.core
that referenced
this issue
Jul 18, 2023
…clipse-jdt#600 (eclipse-jdt#672) * Create compile error in case 'var' reserved type name is used with type arguments. Fixes eclipse-jdt#600 * Create additional test to cover variable declaration in a basic 'for' statement * Fix changes made to LocalDeclaration.java by removing return statement to restore normal flow of control after adding the problem. Add new tests for enhanced for statement and try-with-resources statement. * Adjust @SInCE version for new IProblem constant --------- Co-authored-by: Simon Fischer <simon@controlsurface.anonaddy.com> Co-authored-by: Srikanth Sankaran <srikanth.sankaran@advantest.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An error should be reported when there are generics on
var, but the JDT compiler does not complain and compiles anyway. The following class currently compiles and runs, but an error should be reported:When I run this class through
javac, the following error is produced:The text was updated successfully, but these errors were encountered: