RFR 8233272 : The Class.forName specification should be updated to match the long-standing implementation with respect to class linking

Brent Christian brent.christian at oracle.com
Thu Nov 14 23:58:11 UTC 2019


On 11/14/19 8:22 AM, Mandy Chung wrote:
> On 11/13/19 10:37 AM, Brent Christian wrote:
> 
> The spec change looks fine.

OK, thanks.

> As for the test, I expect that it simply calls Class.forName("Provider", 
> false, ucl) and then should succeed.
> 
> Then calling Class.forName("Provider", true, ucl) should fail with an 
> error (I think it's EIIE with NCDFE?).  This way it verifies that 
> initialization/linking does cause NCDFE during verification while 
> Class.forName does not do linking if initialize=false.

Yes, that works well, thanks for the idea (plus I can do it with one 
fewer class):

http://cr.openjdk.java.net/~bchristi/8233272/webrev-03/

-Brent


More information about the core-libs-dev mailing list