Skip to content

Fix #24711: Use dot notation for Java nested types in error messages#24919

Merged
SolalPirelli merged 1 commit into
scala:mainfrom
tanishiking:i24711
Mar 3, 2026
Merged

Fix #24711: Use dot notation for Java nested types in error messages#24919
SolalPirelli merged 1 commit into
scala:mainfrom
tanishiking:i24711

Conversation

@tanishiking

Copy link
Copy Markdown
Member

fix #24711

Java nested types like java.util.Map.Entry were incorrectly displayed with (java.util.Map#Entry) in error messages, which is invalid syntax in Scala and cannot be used by devtools.

@tanishiking tanishiking marked this pull request as draft January 8, 2026 14:28
…ages

Java nested types like `java.util.Map.Entry` were incorrectly displayed
with (`java.util.Map#Entry`) in error messages, which is invalid syntax in Scala and cannot be used by devtools.
@tanishiking tanishiking marked this pull request as ready for review January 21, 2026 09:23
@tanishiking tanishiking requested a review from rochala February 26, 2026 11:09
@Gedochao Gedochao requested a review from SolalPirelli March 3, 2026 09:32
@SolalPirelli SolalPirelli merged commit ccbfe73 into scala:main Mar 3, 2026
56 checks passed
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request Mar 20, 2026
…ages (scala#24919)

fix scala#24711 

Java nested types like `java.util.Map.Entry` were incorrectly displayed
with (`java.util.Map#Entry`) in error messages, which is invalid syntax
in Scala and cannot be used by devtools.
[Cherry-picked ccbfe73]
@WojciechMazur WojciechMazur added this to the 3.8.4 milestone Mar 31, 2026
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

Successfully merging this pull request may close these issues.

Scala compiler uses an invalid type java.util.Map#Entry[String, Int] in the compilation error message

5 participants