Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/Signature.java')
-rw-r--r--bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/Signature.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/Signature.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/Signature.java
index 7374af75..07c2dbb1 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/Signature.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/Signature.java
@@ -1312,7 +1312,12 @@ private static int appendTypeSignature(char[] string, int start, boolean fullyQu
buffer.append(VOID);
return start;
default :
- throw new IllegalArgumentException();
+ /* either the string is not formated as a signature, or we do not know
+ * how to handle it, so just return it, this is preferable to throwing
+ * an unnecessary exception
+ */
+ buffer.append(string);
+ return start;
}
}
}

Back to the top