[jboss-dev-forums] [Design of JBoss Build System] - Re: JDK Crashing in AS Build
bstansberry@jboss.com
do-not-reply at jboss.com
Thu Apr 16 18:43:59 EDT 2009
Verbose mode is our friend. It seems unable to handle the commented out code below so I'm replacing it with the non-genericized stuff below it.
| // Genericized code below crashes some Sun JDK compilers; see
| // http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154175
|
| // Map<ClusteredSession<? extends OutgoingDistributableSessionData>, SnapshotManager> sessions = ctx.getCrossContextSessions();
| // if (sessions != null && sessions.size() > 0)
| // {
| // for (Map.Entry<ClusteredSession<? extends OutgoingDistributableSessionData>, SnapshotManager> entry : sessions.entrySet())
| // {
| // entry.getValue().snapshot(entry.getKey());
| // }
| // }
|
| // So, use this non-genericized code instead
| Map sessions = ctx.getCrossContextSessions();
| if (sessions != null && sessions.size() > 0)
| {
| for (Iterator it = sessions.entrySet().iterator(); it.hasNext();)
| {
| Map.Entry entry = (Map.Entry) it.next();
| ((SnapshotManager) entry.getValue()).snapshot((ClusteredSession) entry.getKey());
| }
| }
| }
With that the problem goes away for me.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226063#4226063
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226063
More information about the jboss-dev-forums
mailing list