8056978: ClassCastException: cannot cast jdk.nashorn.internal.scripts.JO*Reviewed-by: jlaskey, sundar