< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/jdi/ValueImpl.java

Print this page

        

*** 44,53 **** --- 44,56 ---- * TO DO: Centralize JNI signature knowledge */ if (destination.signature().length() == 1) { throw new InvalidTypeException("Can't set a primitive type to null"); } + if (destination.signature().charAt(0) == 'Q') { + throw new InvalidTypeException("Can't set an inline type to null"); + } return null; // no further checking or conversion necessary } else { return ((ValueImpl)value).prepareForAssignmentTo(destination); } }
< prev index next >