<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.3">
</HEAD>
<BODY>
Jason,<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp; There was a bug raised on this with Sun, and it is as follows:<BR>
<BR>
<A HREF="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149</A><BR>
<BR>
They are actually not going to fix this, but instead want you to use what you describe below.&nbsp; We will have to change our code accordingly in AS 5 and anywhere else for that matter to support JDK 6.<BR>
<BR>
Andy<BR>
<BR>
On Wed, 2007-06-13 at 17:12 -0500, Jason T. Greene wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">FYI,</FONT>

<FONT COLOR="#000000">There is an undocumented system property (besides the jvm source) in JDK</FONT>
<FONT COLOR="#000000">5 and 6 called &quot;sun.lang.ClassLoader.allowArraySyntax&quot;. The default</FONT>
<FONT COLOR="#000000">changed from true to false in JDK6. So what this means is that in JDK6,</FONT>
<FONT COLOR="#000000">unless you set that property to true, if you try and load a Java array</FONT>
<FONT COLOR="#000000">type using a classloader (e.g. &quot;[[B&quot;) you will get a CNFE.</FONT>

<FONT COLOR="#000000">The compatible solution is to either interpret array types directly (not</FONT>
<FONT COLOR="#000000">hard), or to use the extended form of Class.forName(), which does</FONT>
<FONT COLOR="#000000">understand the array syntax:</FONT>

<FONT COLOR="#000000">Class clazz = Class.forName(className, false, loader);</FONT>

<FONT COLOR="#000000"><A HREF="http://jira.jboss.com/jira/browse/JBCOMMON-25">http://jira.jboss.com/jira/browse/JBCOMMON-25</A></FONT>

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Andrig (Andy) Miller<BR>
VP of Engineering<BR>
JBoss, a division of Red Hat
</TD>
</TR>
</TABLE>
</BODY>
</HTML>