<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hello Valhalla Dev Team,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">I am trying to build the Valhalla code base from source so that I can test some of the new features. However, when I tried to do so this morning, my build failed because a warning was thrown, and the build seems to fail on warnings.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Here is the warning.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">C:\cygwin64\home\david\valhalla\src\jdk.compiler\share\classes\com\sun\tools\javac\code\Lint.java:145: warning: [this-escape] possible 'this' escape before subclass is fully initialized<br>        context.put(lintKey, this);<br>                             ^<br>error: warnings found and -Werror specified<br>1 error<br>1 warning</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Here is a link to the class on Valhalla's code base.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Current - <a href="https://github.com/openjdk/valhalla/blob/lworld/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java#L145">https://github.com/openjdk/valhalla/blob/lworld/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java#L145</a></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Commit - <a href="https://github.com/openjdk/valhalla/blob/947ad67fcdbef5e518f60a30b60309d9fc2cf337/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java#L145">https://github.com/openjdk/valhalla/blob/947ad67fcdbef5e518f60a30b60309d9fc2cf337/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java#L145</a></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Long story short, a new warning was added to JDK 21, and since I am building Valhalla using this JDK 21, it is throwing a warning. They have since put a @SuppressWarnings("this-escape") on the offending method in the main line jdk code base, but that commit has not yet been put into the Valhalla code base.<br></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">I don't really know how to hide my JDK 21 build, or to tell the Valhalla build script to use my JDK 20 build. But, worst case scenario, I can just delete my JDK 21 build, so I am not blocked. But I wanted to bring this up in case this is something that needed action to be taken on.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Thank you for your time!</div><div class="gmail_default" style="font-family:monospace">David Alayachew<br></div></div>