ClassCastException - if the argument is not a Long.
如果该参数不是Long时抛出。
ClassCastException - if the argument is not an Integer.
如果该参数不是Integer时抛出。
Another exception that can be thrown by the class loader is ClassCastException.
类装入器能够抛出的另一个异常是ClassCastException。
The result of running c's main method might surprise you — it'll issue a ClassCastException!
运行c的main方法的结果可能会让您吃惊—它将发出一个ClassCastException !
If either of the above rules are violated, then a ClassCastException is thrown by the class loader.
如果违反了以上任何一条规则,那么类装入器就会抛出ClassCastException。
ClassCastException - if the specified object's type prevents it from being compared to this object.
如果指定的对象类型不允许它和该对象进行比较时抛出。
ClassCastException - if the type of the specified element is incompatible with this collection (optional).
如果指定元素的类型与集合不相容时抛出(可选)。
Otherwise, a ClassCastException may occur on com.ibm.ejs.cm.JDBC1PhaseRF because of conflicts in this jar and the j2ee.jar.
否则,com . ibm .ejs . cm . JDBC1PhaseRF可能出现ClassCastException,因为在这个jar和j2ee . jar中有冲突。
ClassCastException - if the class of an element of the specified collection prevents it from being added to this collection.
如果指定集合的某个元素类型阻止其加入集合时抛出。
In the previous code, we'd expect that if register (" test ") were called on an instance of c, a ClassCastException would be signaled.
在以前的代码中,我们认为如果对实例c调用register (“test ”),会发出ClassCastException。
ClassCastException - if the types of one or more elements in this collection are incompatible with the specified collection (optional).
如果指定集合的一个或多个元素的类型与集合不相容时抛出(可选)。
ClassCastException - if the types of one or more elements in the specified collection are incompatible with this collection (optional).
如果指定集合的一个或多个元素的类型与集合不相容时抛出(可选)。
It is thrown as a result of incompatible types being found in a type comparison. The JVM specification says a that ClassCastException is.
它是在类型比较中发现不兼容类型的时候抛出的。
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时,我们应如何诊断这样的错误?
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时,我们应如何诊断这样的错误?
应用推荐