summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Panchenko2012-09-16 05:56:32 (EDT)
committerAlex Panchenko2012-09-16 05:56:32 (EDT)
commit46d512e4f889cfe1d7d3b7e06837e533d175f343 (patch)
tree852df48adb51b8348eff01e6528389bc3d7db55c
parent891a5ed4538873c8f9d4844e8981c0273f62d567 (diff)
downloadorg.eclipse.dltk.javascript-46d512e4f889cfe1d7d3b7e06837e533d175f343.zip
org.eclipse.dltk.javascript-46d512e4f889cfe1d7d3b7e06837e533d175f343.tar.gz
org.eclipse.dltk.javascript-46d512e4f889cfe1d7d3b7e06837e533d175f343.tar.bz2
internal/assert: add type name to the assert message
-rw-r--r--plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JSDocValidatorFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JSDocValidatorFactory.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JSDocValidatorFactory.java
index ff94789..d33f785 100644
--- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JSDocValidatorFactory.java
+++ b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/parser/JSDocValidatorFactory.java
@@ -163,7 +163,8 @@ public class JSDocValidatorFactory {
protected void checkType(ISourceNode tag, Type type,
IValueCollection collection, int flags) {
- Assert.isTrue(type.getKind() != TypeKind.UNRESOLVED);
+ Assert.isTrue(type.getKind() != TypeKind.UNRESOLVED, "Type \""
+ + type.getName() + "\" is a proxy");
if (type.getKind() == TypeKind.UNKNOWN) {
if ((flags & LOCAL_TYPES) != 0 && collection != null) {
if (collection.getChild(type.getName()).exists()) {