Log in
Skip to main content
Skip to sidebar
Dashboards
Projects
Issues
Help
Jira Core help
Keyboard Shortcuts
About Jira
Jira Credits
Log In
Watched Subcomponents
JDK
JDK-8286797
Guards of constant value false are not permitted
Log In
Resolved
Export
null
XML
Word
Printable
Details
Type:
Bug
Resolution:
Fixed
Priority:
P3
Fix Version/s:
19
Affects Version/s:
19
Component/s:
tools
Labels:
None
Subcomponent:
javac
Resolved In Build:
b24
Description
javac should produce a compile-time error for code like:
---
switch (Object o) {
case String s when false -> {}
default -> {}
}
--
Attachments
Issue Links
links to
Commit
openjdk/jdk/fd36f373
Review
openjdk/jdk/8745
Activity
People
Assignee:
Angelos Bimpoudis
Reporter:
Jan Lahoda
Votes:
0
Vote for this issue
Watchers:
5
Start watching this issue
Dates
Created:
2022-05-15 23:39
Updated:
2022-05-26 12:45
Resolved:
2022-05-19 09:13