forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[23] JEP 455: Primitive Types in Patterns, instanceof, and switch
(Preview) - removed unused arg typeId from invokeDynamic() (several) + new switchBit Primitive identifies switch over primitive + switching over all int-ish primitives - not yet: long, float, double + route primitive constants through indy typeSwitch with 2 args: - the constant (int or boolean) - invocation of ConstantBootstraps.primitiveClass + for boolean constants specifically route the constant through invocation of ConstantBootstraps.getStaticFinal ( TRUE | FALSE ) + uniquely generate new bootstraps controlled by ClassFile.PRIMITIVE_CLASS__TOKEN and ..GET_STATIC_FINAL__TOKEN + no requireNonNull() for primitives + generic test for most primitives with identity conversion + using a constant case & a pattern case fixes eclipse-jdt#2298
- Loading branch information
1 parent
498ccb4
commit 83a3cac
Showing
12 changed files
with
1,490 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.