The getKeyProperty method calls Collections.unModifiableMap which returns an
UnModifiableMap object. The UnmodifiableMap class does not extend the Hashtable
class. Therefore, the cast line 577 raises a checkcast exception:

(Hashtable) Collections.unmodifiableMap(new Hashtable(properties));


-- 
           Summary: ClassCastException in
                    javax.management.ObjectName.getKeyPropertyList()
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nicolas dot geoffray at menlina dot com


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



_______________________________________________
Bug-classpath mailing list
Bug-classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-classpath

Reply via email to