Closed ecabrerar closed 8 months ago
In the following snippet:
Collection<String> numbers = List.of("one","two","three"); numbers.remove("two"); System.out.println(numbers);
An unsupported operation exception must be thrown.
Playground output:
JShell Version 21.0.1 output:
Linux
Chrome
eudris@gmail.com
Leave blank
Thanks for reporting this. We will investigate this issue.
Fixed in PG22
Variable declaration & initialization ⮕ [one, two, three] Exception java.lang.UnsupportedOperationException
What happened?
In the following snippet:
An unsupported operation exception must be thrown.
Playground output:
JShell Version 21.0.1 output:
OS
Linux
What browsers are you seeing the problem on?
Chrome
Contact Details (optional)
eudris@gmail.com
Additional information
Leave blank