Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java |
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java |
index 8dee9b4454ad09f9f9b99eeeda94ec8a5527aa95..71e7564e4547dbb5aead2292f22bcaef8db440cc 100644 |
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java |
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java |
@@ -1754,9 +1754,10 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor { |
} |
ITypeBinding typeBinding = context.getNodeTypeBinding(expression); |
if (typeBinding != null) { |
- String name = typeBinding.getName(); |
+ String name = JavaUtils.getFullyQualifiedName(typeBinding, false); |
return name.equals("char") || name.equals("short") || name.equals("int") |
- || name.equals("long") || name.equals("float") || name.equals("double"); |
+ || name.equals("long") || name.equals("float") || name.equals("double") |
+ || name.equals("java.lang.Class"); |
} |
return false; |
} |