Skip to content

Conversation

@srikanth-sankaran
Copy link
Contributor

Integer... at levels that don't support enhanced switch

* Fixes eclipse-jdt#3379
@srikanth-sankaran srikanth-sankaran self-assigned this Dec 3, 2024
@srikanth-sankaran srikanth-sankaran added this to the 4.35 M1 milestone Dec 3, 2024
@srikanth-sankaran srikanth-sankaran changed the title Enhanced Switch v2.0 - Part 2 [Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch Dec 3, 2024
@srikanth-sankaran srikanth-sankaran merged commit eaff460 into eclipse-jdt:master Dec 3, 2024
8 checks passed
@srikanth-sankaran srikanth-sankaran deleted the Enhanced-switch-v2.0-part2 branch December 3, 2024 09:37
jarthana added a commit that referenced this pull request Dec 6, 2024
* Remove nolonger support converterJclMin (#3332)

Versions older than 1.8 are not supported and thus shouldn't be needed
anymore.

* Fix and enable Java50Tests#testMissingRequiredBinaries

* Version bump(s) for 4.35 stream

* Test failures in I-Builds due to less diagnostics being emitted (#3357)

* Fixes #3356

* Textual problem indicator goes wild with lamda (#3358)

* jclMin23: ignore missing serializable problem

"The serializable class Long does not declare a static final
serialVersionUID field of type"

* Fix FieldLocator and MethodLocator to support local/anonymous classes (#3314)

- Fix FieldLocator.reportDeclaration() and
  MethodLocator.reportDeclaration() to find the anonymous or local
  type for the declaration rather than to return
- add new tests to JavaSearchBugsTests
- fixes #3308

* Codegen Primitives in record comonent patterns to be enabled with null check before calling accessor(#3361)

Before generating an invoke of accessor of a record component, do a null check if primitive conversions are involved.

* java.lang.StackOverflowError during "Requesting Java AST from selection" (#3373)

+ resilience: avoid accepting a sourceType being completed already
+ better hiding of modules seen via the classpath

Fixes #3273

* Add NoSuchFieldError to converterJclMin18 (#3368)

Add NoSuchFieldError to converterJclMin18
 + build the jar
 + avoid new warning

Enable couple of tests fixed by this.

---------
Co-authored-by: Stephan Herrmann <[email protected]>

* Incorrect control flow analysis causes statement subsequent to a switch statement to be flagged unreachable under some circumstances(#3377)

* Fixes #3376

* Remove unused api problem filter

* Update tycho build to 4.0.10

* Completion for unimported types doesn't work.

- use MissingTypesGuesser to select all missing types and offer their completion
- Fixes #1502

* [Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch (#3380)

* Fixes #3379

---------

Co-authored-by: Александър Куртаков <[email protected]>
Co-authored-by: Eclipse JDT Bot <[email protected]>
Co-authored-by: Srikanth Sankaran <[email protected]>
Co-authored-by: Jörg Kubitz <[email protected]>
Co-authored-by: Jeff Johnston <[email protected]>
Co-authored-by: Manoj  N Palat <[email protected]>
Co-authored-by: Stephan Herrmann <[email protected]>
Co-authored-by: Snjeza <[email protected]>
robstryker pushed a commit to robstryker/eclipse.jdt.core that referenced this pull request Feb 6, 2025
…pe Integer... at levels that don't support enhanced switch (eclipse-jdt#3380)

* Fixes eclipse-jdt#3379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhanced Switch] Wrong error message: Cannot switch on a value of type Integer... at levels that don't support enhanced switch

1 participant