-
1. Re: AS5 / Java6 build
dimitris Dec 2, 2007 1:32 PM (in response to dimitris)Related jira issue http://jira.jboss.com/jira/browse/JBAS-5031
-
2. Re: AS5 / Java6 build
dimitris Dec 2, 2007 1:50 PM (in response to dimitris)I saw an org.jboss.resource.adapter.jdbc.jdk6 package introduced, that needs jdk6 to compile. How are we supposed to build/package the distro so that the extra jdk6 classes are included?
a) Have different jdk5 / jdk6 distros ?
b) Compile with jdk6, using -source 1.5 -target 1.5, expect for the jdk6 classes that should be compiled with -source 1.6 -target 1.6 ?
c) other?
Also the current jdk6 hudson run fails while testing the profileservice:
http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-5.0.x-TestSuite-sun16/6/artifact/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/log/
Do we need to set the "sun.lang.ClassLoader.allowArraySyntax" property under jdk6? -
3. Re: AS5 / Java6 build
alesj Dec 2, 2007 7:23 PM (in response to dimitris)"dimitris@jboss.org" wrote:
Also the current jdk6 hudson run fails while testing the profileservice:
http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-5.0.x-TestSuite-sun16/6/artifact/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/log/
Do we need to set the "sun.lang.ClassLoader.allowArraySyntax" property under jdk6?
This has nothing to do with JDK5 vs. JDK6, it's just that from the info that we have in XML we don't know which out of these two methods to call:org.jboss.remoting.ServerInvocationHandler addInvocationHandler(java.lang.String string, javax.management.ObjectName objectName) throws java.lang.Exception; org.jboss.remoting.ServerInvocationHandler addInvocationHandler(java.lang.String string, org.jboss.remoting.ServerInvocationHandler serverInvocationHandler) throws java.lang.Exception;
So, I added class attribute to parameters:<parameter class="java.lang.String">ProfileService</parameter> <parameter class="org.jboss.remoting.ServerInvocationHandler"><this/></parameter>
If you're wondering why it cannot guess any better :-), this is a long and old discussion. Would need to find that old thread. ;-) -
4. Re: AS5 / Java6 build
dimitris Dec 3, 2007 5:38 AM (in response to dimitris)Ales, why that wasn't failing in the regular jdk5 run then?
-
5. Re: AS5 / Java6 build
alesj Dec 3, 2007 5:49 AM (in response to dimitris)"dimitris@jboss.org" wrote:
Ales, why that wasn't failing in the regular jdk5 run then?
Since both methods match the given criteria (name and param length), either one is OK.
The methods have no particular order - I guess it's hash.
Looks like we were lucky, although it's 50-50 chance. :-) -
6. Re: AS5 / Java6 build
dimitris Dec 3, 2007 6:05 AM (in response to dimitris)Ok, I get it now. I'll trigger another jdk6 run after this latest big regression (metadata related?) is fixed.
-
7. Re: AS5 / Java6 build
adrian.brock Dec 3, 2007 7:05 AM (in response to dimitris)"dimitris@jboss.org" wrote:
I saw an org.jboss.resource.adapter.jdbc.jdk6 package introduced, that needs jdk6 to compile. How are we supposed to build/package the distro so that the extra jdk6 classes are included?
a) Have different jdk5 / jdk6 distros ?
b) Compile with jdk6, using -source 1.5 -target 1.5, expect for the jdk6 classes that should be compiled with -source 1.6 -target 1.6 ?
c) other?
The purpose is just to get it to compile on JDK6. Whether we actually
produce a JDK6 distro is a different question.
e.g. if somebody wants to use the JDBC api methods then it would need
to compiled with JDK6
Also the current jdk6 hudson run fails while testing the profileservice:
http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-5.0.x-TestSuite-sun16/6/artifact/trunk/build/output/jboss-5.0.0.Beta3/server/profileservice/log/
Do we need to set the "sun.lang.ClassLoader.allowArraySyntax" property under jdk6?
I'd suggest we do that by default. There's likely a lot of thirdparty code
we can't fix (including user code) that is affected by this backward
compatibility breakage by Sun.