<br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 5:14 AM, Alex Kasko <span dir="ltr">&lt;<a href="mailto:alex.kasko.lists@gmail.com" target="_blank">alex.kasko.lists@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>
Almost nothing would persuade me to accept 2).  This is an internal<br>
method that no application should use.<br>
</blockquote></div>
Not arguing, just for your information, situation happened to me some weeks ago.<br>
My teammate C++ programmer with little java knowledge was working on Snappy [1] compatibility with C++ streams. He wanted to build Snappy on his Linux box using openjdk6 from packets and was not able to do it - got NoSuchMethodError. At the same time it compiles fine with later versions of Oracle JDK6. Yes, this Snappy implementation uses undocumented API (for optimization purposes) and it has fallback implementation and will run on openjdk6. But it cannot be compiled with default java6 in Linux without downloading Oracle JDK6 and this caused some frustration.<br>

Also sun.misc.Unsafe usage is quite popular for specific optimizations, I&#39;ve even seen it once in java job position requirements (as additional point).<br></blockquote><div><br></div><div>I also think that this change (adding a missing method to Unsafe) is a perfectly reasonable thing to add to openjdk6.  It is a performance+stability improvement, with a low likelihood of breakage (unlike updating to javac7, which *intentionally* will break some builds). </div>
</div>