<!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>
FYI on the JDK 6 related issues.<BR>
<BR>
-------- Forwarded Message --------<BR>
<BLOCKQUOTE TYPE=CITE>
    <B><FONT COLOR="#000000">From</FONT></B><FONT COLOR="#000000">: Chan, Sunny &lt;<A HREF="mailto:%22Chan,%20Sunny%22%20%3cSunny.Chan@gs.com%3e">Sunny.Chan@gs.com</A>&gt;</FONT><BR>
    <B><FONT COLOR="#000000">To</FONT></B><FONT COLOR="#000000">: Andrig T Miller &lt;<A HREF="mailto:Andrig%20T%20Miller%20%3canmiller@redhat.com%3e">anmiller@redhat.com</A>&gt;</FONT><BR>
    <B><FONT COLOR="#000000">Subject</FONT></B><FONT COLOR="#000000">: RE: JDK 6 Bugs</FONT><BR>
    <B><FONT COLOR="#000000">Date</FONT></B><FONT COLOR="#000000">: Fri, 1 Jun 2007 10:48:58 +0100</FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Hi Andrig,</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Thanks for your reply.</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">I am just a bit&nbsp;curious: Is there any reason why you need to compile JBoss on&nbsp;Java 6? I have downloaded the source package for 4.0.5 compile with Java 5 and running&nbsp;unit test with this build and&nbsp;I have&nbsp;found no problem at all. I did tried to compile that with Java 6 and found that most of the errors I&nbsp;found are&nbsp;due to the fact that JDBC has been upgrade to version 4 which has introduced new methods in JDBC interfaces,&nbsp;and&nbsp;JBoss unit test infrastructure that&nbsp;implements these JDBC interfaces need to be updated to provide at least a mock method for them. </FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">In terms of the bug that you mention, I have checked the bug database and looks like the behaviour for loading array classes via Classloader.loadClass() has been disallowed, and the API has never been intended to be used with array syntax, see&nbsp;<A HREF="blocked::http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4976356">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4976356</A>. The workaround for this is to add to system property &quot;sun.lang.ClassLoader.allowArraySyntax=true&quot;, which reverts JDK 6 to previous behaviour. However I would suggested that for long term you&nbsp;should modify JBoss code to use alternative interface to get an array class, for example java.lang.reflect.Array.newInstance().</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">If I can further assist you on this please do not hesitate to contact me.</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Sunny Chan</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Enterprise Java Engineering</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Goldman Sachs International</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Voice: +44 (0)207 774 3695</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Mobile: +44 (0)782 525 6483</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">email: sunny.chan@gs.com</FONT></FONT><BR>
    <BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        
<HR>
<BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">From:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Andrig T Miller [mailto:anmiller@redhat.com] </FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">Sent:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Thursday, May 31, 2007 7:26 PM</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">To:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Chan, Sunny</FONT></FONT><BR>
        <B><FONT SIZE="2"><FONT COLOR="#000000">Subject:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> JDK 6 Bugs</FONT></FONT><BR>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">Sunny,</FONT><BR>
        <BR>
        <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp;&nbsp; I am the VP of Engineering for the JBoss Division, and I can help you out with more details on the JDK 6 issues that we have seen.&nbsp; The first problem is that we cannot build from source with JDK 6.&nbsp; I don't have a specific bug for that, as we have not had sufficient time to spend on the problem to open a bug report on it.&nbsp; The second problem is a class loading regression that affects our code at runtime (built with JDK 5, run on JDK 6), and the following link is the bug id in the Sun database:</FONT><BR>
        <BR>
        <FONT COLOR="#000000"><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></FONT><BR>
        <BR>
        <FONT COLOR="#000000">If you could help to push this, that would be great.&nbsp; I have voted for the bug to be fixed, but it was not fixed in the first update release of JDK 6.</FONT><BR>
        <BR>
        <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>
    </BLOCKQUOTE>
</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>