Skip to content

Add default hint for switch pattern matching error#3440

Closed
mishrasandeep wants to merge 2 commits intoapache:masterfrom
mishrasandeep:nb-add-default
Closed

Add default hint for switch pattern matching error#3440
mishrasandeep wants to merge 2 commits intoapache:masterfrom
mishrasandeep:nb-add-default

Conversation

@mishrasandeep
Copy link
Contributor

@mishrasandeep mishrasandeep commented Jan 11, 2022

@mishrasandeep mishrasandeep marked this pull request as draft January 11, 2022 10:36
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) stale No recent activity - likely to be closed. hints labels Sep 24, 2023
@mbien
Copy link
Member

mbien commented Oct 14, 2023

what shall we do with this PR? Hasn't changed since it was set to draft.

mbien added a commit to mbien/netbeans that referenced this pull request Sep 25, 2025
Hint triggers on the javac error code and offers to append a default
case to the switch block.

commit notes:

 - originally based on an old draft PR (apache#3440) from Sandeep Mishra
 - finished the impl and aligned the code to the changed codebase
   (e.g TreeShims is no more)
 - added tests

Co-Authored-By: mishrasandeep <sandeep.s.mishra@oracle.com>
mbien added a commit to mbien/netbeans that referenced this pull request Sep 25, 2025
Hint triggers on the javac error code and offers to append a default
case to the switch block.

commit notes:

 - originally based on an old draft PR (apache#3440) from Sandeep Mishra
 - finished the impl and aligned the code to the changed codebase
   (e.g TreeShims is no more)
 - added tests

Co-Authored-By: mishrasandeep <sandeep.s.mishra@oracle.com>
mbien added a commit to mbien/netbeans that referenced this pull request Sep 25, 2025
Hint triggers on the javac error code and offers to append a default
case to the switch block.

commit notes:

 - originally based on an old draft PR (apache#3440) from Sandeep Mishra
 - finished the impl and aligned the code to the changed codebase
   (e.g TreeShims is no more)
 - added tests

Co-Authored-By: mishrasandeep <sandeep.s.mishra@oracle.com>
mbien added a commit to mbien/netbeans that referenced this pull request Sep 25, 2025
Hint triggers on the javac error code and offers to append a default
case to the switch block.

other changes:

 - checked all JavaFix impls for TreePath access without TreePathHandle
 - removed some redundant code from tests extending ErrorHintsTestBase

commit notes:

 - originally based on an old draft PR (apache#3440) from Sandeep Mishra
 - finished the impl and aligned the code to the changed codebase
   (e.g TreeShims is no more)
 - added tests

Co-Authored-By: mishrasandeep <sandeep.s.mishra@oracle.com>
mbien added a commit to mbien/netbeans that referenced this pull request Oct 1, 2025
Hint triggers on the javac error code and offers to append a default
case to the switch block.

other changes:

 - checked all JavaFix impls for TreePath access without TreePathHandle
 - removed some redundant code from tests extending ErrorHintsTestBase

commit notes:

 - originally based on an old draft PR (apache#3440) from Sandeep Mishra
 - finished the impl and aligned the code to the changed codebase
   (e.g TreeShims is no more)
 - added tests

Co-Authored-By: mishrasandeep <sandeep.s.mishra@oracle.com>
@mbien mbien closed this in #8860 Oct 9, 2025
homberghp pushed a commit to homberghp/netbeans that referenced this pull request Oct 23, 2025
Hint triggers on the javac error code and offers to append a default
case to the switch block.

other changes:

 - checked all JavaFix impls for TreePath access without TreePathHandle
 - removed some redundant code from tests extending ErrorHintsTestBase

commit notes:

 - originally based on an old draft PR (apache#3440) from Sandeep Mishra
 - finished the impl and aligned the code to the changed codebase
   (e.g TreeShims is no more)
 - added tests

Co-Authored-By: mishrasandeep <sandeep.s.mishra@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hints Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) stale No recent activity - likely to be closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants