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

UnmodifiableCollectionsSerializer fail to handle Map type #6400

Open
zhaohehuhu opened this issue Jan 22, 2025 · 1 comment
Open

UnmodifiableCollectionsSerializer fail to handle Map type #6400

zhaohehuhu opened this issue Jan 22, 2025 · 1 comment

Comments

@zhaohehuhu
Copy link

once the type of col is map, this may lead to the exception of class cast.

Expected behavior

Map can be serializable without any error.

Observed behavior

Exception in thread "main" java.lang.ClassCastException: class java.util.Collections$UnmodifiableMap cannot be cast to class java.util.Collection (java.util.Collections$UnmodifiableMap and java.util.Collection are in module java.base of loader 'bootstrap')

Version of OTP used (exact commit hash or JAR name)

Data sets in use (links to GTFS and OSM PBF files)

Command line used to start OTP

Router config and graph build config JSON

Steps to reproduce the problem

@t2gran
Copy link
Member

t2gran commented Jan 23, 2025

What version of OTP are you using, and which version of Java ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants