java / devrel

Java DevRel feedback
https://inside.java
10 stars 1 forks source link

[Bug]: Dismissing the exception for unsupported operation. #16

Closed ecabrerar closed 8 months ago

ecabrerar commented 1 year ago

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

delabassee commented 1 year ago

Thanks for reporting this. We will investigate this issue.

delabassee commented 8 months ago

Fixed in PG22

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