java/devrel

[Bug]: Dismissing the exception for unsupported operation.

ecabrerar opened this issue · 2 comments

What happened?

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:
Selection_736

JShell Version 21.0.1 output:
Selection_737

OS

Linux

What browsers are you seeing the problem on?

Chrome

Contact Details (optional)

eudris@gmail.com

Additional information

Leave blank

Thanks for reporting this. We will investigate this issue.

Fixed in PG22

Variable declaration & initialization ⮕ [one, two, three]
Exception java.lang.UnsupportedOperationException