<div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div>Hi Maurizio,</div><div><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">as Vicente mentioned, this is sadly a known issue. </blockquote><div><br></div><div>Thank you and Vicente for pointing at the root problem. I actually did do a </div><div>few searches trying to find something similar in Jira but didn't come up </div><div>with anything that wasn't closed (like JDK-8263452).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We have some ideas on how to maybe do it, but they <br>
are all fairly complex, and the risk of affecting correctness is rather high.<br></blockquote><div><br></div><div>Fair enough and sorry I can't be more helpful here.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In the meantime, there's maybe a workaround for you to try: let's remove <br>
the generic-ness of Map.Entry from the picture, by declaring a new method:</blockquote><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Map.Entry<String, String> newStringEntry(String key, String val) { return Map.entry(key, val); }</blockquote></div><div><br></div><div>This is actually a nice hint for adding to Uwe's forbiddenapis checker. [1] :)</div><div><br></div><div>Anyway, I have refactored that initialization into a different code shape already - this isn't the difficult part. </div><div>The difficult part was in figuring out what the problem actually was and trying to detect it somehow for the</div><div>future, until you smart folks figure out how to straighten it up. </div><div><br></div><div>This code had been compiling for weeks (slowing down builds) and I only found out about it because</div><div>I was working on something unrelated in the build and noticing these strange, long compilation times on a literal</div><div>dozen of input files. My thought process was: gradle build problem, hardware problem, extensive I/O somewhere...</div><div>javac was way, way at the end of the list (if at all). I mean it as a compliment - it's typically so robust that it's</div><div>hardly ever a suspect.</div><div><br></div><div>Thanks again for feedback and sorry for raising an alarm on an existing issue.</div><div><br></div><div>Dawid </div><div><br></div><div>[1] <a href="https://github.com/policeman-tools/forbidden-apis">https://github.com/policeman-tools/forbidden-apis</a></div></div></div>
</div>