Skip to content

The behavior when resolving bindings is different from javac #42

Open
@CaveNightingale

Description

@CaveNightingale

The inner class Entry is defined in it.unimi.dsi.fastutil.longs.Long2ObjectMap and java.util.Map.Entry, but it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap extends it.unimi.dsi.fastutil.longs.Long2ObjectMap.

So someone wrote the following code.

import it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap;
...
        for(Long2ObjectLinkedOpenHashMap.Entry entry : map.entries())
...

This lead to crash because mercury can't resolve Long2ObjectLinkedOpenHashMap.Entry. However, javac resolves this as it.unimi.dsi.fastutil.longs.Long2ObjectMap$Entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions