void () { //noinspection unchecked doTest("java.lang.ClassCastException: class java.lang.String cannot be cast to class [Ljava.lang.Object; (java.lang.String and [Ljava.lang.Object; are in module java.base of loader 'bootstrap')", "Find why 'obj' could be java.lang.String (not-null)", "class X {static <E> E[] asArray(Object obj) {return (E[])obj;}}"); }