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
Down for 10.3.x LTS version upgrade on Nov 3, 09:30 PM - Nov 4, 01:30 AM PT (Nov 04, 05:30 AM - 09:30 AM GMT, Tuesday)
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