MCPcopy Index your code
hub / github.com/beanshell/beanshell / castError

Method castError

src/bsh/Types.java:660–666  ·  view source on GitHub ↗

Return a UtilEvalError or UtilTargetError wrapping a ClassCastException describing an illegal assignment or illegal cast, respectively.

( 
		Class lhsType, Class rhsType, int operation   )

Source from the content-addressed store, hash-verified

658 describing an illegal assignment or illegal cast, respectively.
659 */
660 static UtilEvalError castError(
661 Class lhsType, Class rhsType, int operation )
662 {
663 return castError(
664 Reflect.normalizeClassName(lhsType),
665 Reflect.normalizeClassName(rhsType), operation );
666 }
667
668 static UtilEvalError castError(
669 String lhs, String rhs, int operation )

Callers 2

castPrimitiveMethod · 0.95
castObjectMethod · 0.95

Calls 1

normalizeClassNameMethod · 0.95

Tested by

no test coverage detected