|
From: | Eric Blake |
Subject: | Re: Class.forName() bug |
Date: | Tue, 07 Jan 2003 18:10:05 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 |
Jeroen Frijters wrote:
Hi, When Class.forName() is called with an array classname (e.g. "[LFoo;"), it calls classloader.loadClass() with the same string, but this isn't correct. It should instead load "Foo" and then call a VM native method that constructs the array class.
Be careful, though. Class.forName("[LFoo;") is documented as NOT initializing Foo; does ClassLoader.loadClass() initialize Foo against our wishes?
-- This signature intentionally left boring. Eric Blake address@hidden BYU student, free software programmer
[Prev in Thread] | Current Thread | [Next in Thread] |