Another exception that can be thrown by the class loader is ClassCastException.
类装入器能够抛出的另一个异常是ClassCastException。
If either of the above rules are violated, then a ClassCastException is thrown by the class loader.
如果违反了以上任何一条规则,那么类装入器就会抛出ClassCastException。
How are we supposed to diagnose a bug like this one when the only error signaled is a ClassCastException in code that makes no use of casts?
当未使用数据类型转换的代码中显示的唯一错误就是ClassCastException时,我们应如何诊断这样的错误?
应用推荐