This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if (name == null) {
if(et instanceof LiteralTree) {
String guess = (String) ((LiteralTree) et).getValue();
LiteralTree lt=((LiteralTree) et);
if (guess != null)
//142405 check is LiteralTree.getValue() String before cast
return guessLiteralName(guess);
if(lt.getValue()instanceof String){
String guess = (String) lt.getValue();
}else
return DEFAULT_NAME;
} else
}