bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/28652] JBoss fails to start due class cast exception in t


From: edwin dot steiner at gmx dot net
Subject: [Bug classpath/28652] JBoss fails to start due class cast exception in the management classes
Date: 14 Oct 2006 11:20:20 -0000


------- Comment #4 from edwin dot steiner at gmx dot net  2006-10-14 11:20 
-------
I found the reason for this:
    javax.management.modelmbean.ModelMBeanInfoSupport assumes that
    all kinds of arrays retrieved from its superclass can be cast to
    a specific derived type. I saw that many places in GNU Classpath use
    the "new array - arraycopy" idiom to copy arrays, which probably is
    the right thing, as you end up with the most general array type that
    makes sense. JBoss code in this case assumes that array _cloning_ is
    used in the superclass constructor, so the more derived type of the
    arrays is preserved.

I'll attach a patch fixing this particular case.


-- 

edwin dot steiner at gmx dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edwin dot steiner at gmx dot
                   |                            |net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28652





reply via email to

[Prev in Thread] Current Thread [Next in Thread]