Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 351997
Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/core/Signature.java (-2 / +1 lines)
Lines 292-304 Link Here
292
 *  
292
 *  
293
 */
293
 */
294
public static char[] createCharArrayTypeSignature(char[] typeName, boolean isResolved) {
294
public static char[] createCharArrayTypeSignature(char[] typeName, boolean isResolved) {
295
	if (typeName == null)
295
	if (typeName == null || typeName.length == 0)
296
	{
296
	{
297
		return new char[]{C_ANY};
297
		return new char[]{C_ANY};
298
	}
298
	}
299
299
300
	int length = typeName.length;
300
	int length = typeName.length;
301
	if (length == 0) throw new IllegalArgumentException(new String(typeName));
302
	StringBuffer buffer = new StringBuffer(5);
301
	StringBuffer buffer = new StringBuffer(5);
303
	int pos = encodeTypeSignature(typeName, 0, isResolved, length, buffer);
302
	int pos = encodeTypeSignature(typeName, 0, isResolved, length, buffer);
304
	pos = consumeWhitespace(typeName, pos, length);
303
	pos = consumeWhitespace(typeName, pos, length);
(-)src/org/eclipse/wst/jsdt/internal/compiler/util/Util.java (-1 / +1 lines)
Lines 547-553 Link Here
547
						selector = ((ILiteral) arrayRef.position).source();
547
						selector = ((ILiteral) arrayRef.position).source();
548
					}
548
					}
549
					else {
549
					else {
550
						selector = CharOperation.concatWith(new char[][]{((ILiteral) arrayRef.position).source(), selector}, ',');
550
						selector = CharOperation.concatWith(new char[][]{((ILiteral) arrayRef.position).source(), selector}, '.');
551
					}
551
					}
552
					currExpr = arrayRef.receiver;
552
					currExpr = arrayRef.receiver;
553
				}
553
				}

Return to bug 351997