[jboss-cvs] JBossAS SVN: r93808 - branches/Branch_5_x/main/src/main/org/jboss.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Sep 21 10:14:12 EDT 2009
Author: ALRubinger
Date: 2009-09-21 10:14:11 -0400 (Mon, 21 Sep 2009)
New Revision: 93808
Modified:
branches/Branch_5_x/main/src/main/org/jboss/Main.java
Log:
[JBAS-7278] Dynamic cast to workaround JDK6 javac casting bug
Modified: branches/Branch_5_x/main/src/main/org/jboss/Main.java
===================================================================
--- branches/Branch_5_x/main/src/main/org/jboss/Main.java 2009-09-21 13:27:47 UTC (rev 93807)
+++ branches/Branch_5_x/main/src/main/org/jboss/Main.java 2009-09-21 14:14:11 UTC (rev 93808)
@@ -356,7 +356,7 @@
final ClassLoader loadingCl = new URLClassLoader(urlArray, tccl);
// Load the server
- server = (JBossASServer)ServerFactory.createServer(DEFAULT_AS_SERVER_IMPL_CLASS_NAME, loadingCl);
+ server = JBossASServer.class.cast(ServerFactory.createServer(DEFAULT_AS_SERVER_IMPL_CLASS_NAME, loadingCl));
// Get out the default configuration
// This cast to object first is to workaround the JDK Bug: http://bugs.sun.com/view_bug.do?bug_id=6548436
More information about the jboss-cvs-commits
mailing list