Review Request: JDK-8179950: Custom system class loader using Enum.valueOf in its initialization triggers java.lang.InternalError

Lance Andersen lance.andersen at oracle.com
Tue May 9 17:05:23 UTC 2017


looks fine Mandy...
> On May 9, 2017, at 12:58 PM, Mandy Chung <mandy.chung at oracle.com> wrote:
> 
> Webrev:
>  http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8179950/webrev.00/index.html
> 
> This is a regression caused by JDK-8020801 that the initialization of a custom system class loader hits a code path that checks if a class is loaded by the platform class loader.  Such code path should not call ClassLoader::getSystemClassLoader since the system class loader is being initialized.
> 
> The fix is simple and uses jdk.internal.loader.ClassLoaders.platformClassLoader() instead.
> 
> Mandy

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>





More information about the core-libs-dev mailing list