I have filed this bug a few days ago: https://github.com/scala/bug/issues/11330
This is similar to one that’s been fixed for 2.13: https://github.com/scala/bug/issues/10690
I’m considering taking a crack at this problem myself. It’s the first time I’m touching the scala internal library code, so guidance and/or suggestions would be useful. If I do put together a fix, what’s the likelihood of it being released in a future 2.12.x release? Is there a next release scheduled?