View | Details | Raw Unified | Return to bug 112030
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/SignatureTests.java (-1 / +9 lines)
Lines 453-459 Link Here
453
	assertEquals("Signature#getReturnType is not correct3", "Qlist<Qxxx;>;",
453
	assertEquals("Signature#getReturnType is not correct3", "Qlist<Qxxx;>;",
454
			Signature.getReturnType(methodSig));
454
			Signature.getReturnType(methodSig));
455
}
455
}
456
456
/**
457
 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=112030
458
 * @see Signature
459
 */
460
public void testGetReturnType2() {
461
	String methodSig = "(LObject;)+[I";
462
	assertEquals("Signature#getReturnType is not correct", "+[I",
463
			Signature.getReturnType(methodSig));
464
}
457
/**
465
/**
458
 * @see Signature
466
 * @see Signature
459
 */
467
 */
(-)model/org/eclipse/jdt/internal/core/util/Util.java (-2 / +2 lines)
Lines 2664-2671 Link Here
2664
				return start;
2664
				return start;
2665
			case Signature.C_SUPER :
2665
			case Signature.C_SUPER :
2666
			case Signature.C_EXTENDS :
2666
			case Signature.C_EXTENDS :
2667
				// need a minimum 4 chars "+Lx;"
2667
				// need a minimum 3 chars "+[I"
2668
				if (start >= string.length - 3) {
2668
				if (start >= string.length - 2) {
2669
					throw new IllegalArgumentException();
2669
					throw new IllegalArgumentException();
2670
				}
2670
				}
2671
				break;
2671
				break;

Return to bug 112030