Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ecabrerar opened this issue Oct 18, 2023 · 2 comments
Closed

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

ecabrerar opened this issue Oct 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working playground

Comments

@ecabrerar
Copy link

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 delabassee added the bug Something isn't working label Oct 19, 2023
@delabassee delabassee self-assigned this Oct 19, 2023
@delabassee
Copy link
Member

Thanks for reporting this. We will investigate this issue.

@delabassee
Copy link
Member

Fixed in PG22

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working playground
Projects
None yet
Development

No branches or pull requests

2 participants