Lines 813-818
Link Here
|
813 |
assertEquals("Signature#toQualifiedName is not correct3", "", |
813 |
assertEquals("Signature#toQualifiedName is not correct3", "", |
814 |
Signature.toQualifiedName(new String[0])); |
814 |
Signature.toQualifiedName(new String[0])); |
815 |
} |
815 |
} |
|
|
816 |
|
817 |
/* |
818 |
* Ensures that the toString() signature of an anonymous type is correct |
819 |
* (regression test for bug 180713 Anonymous type rendered as number in hover) |
820 |
*/ |
821 |
public void testToStringAnonymousType() { |
822 |
assertEquals( |
823 |
"Signature#toString is not correct", |
824 |
"new X(){}", |
825 |
Signature.toString("LX$123;")); |
826 |
} |
827 |
|
816 |
/** |
828 |
/** |
817 |
* @see Signature#toString(String) |
829 |
* @see Signature#toString(String) |
818 |
*/ |
830 |
*/ |
Lines 1031-1036
Link Here
|
1031 |
Signature.toString("Lx.y.A$Inner;")); |
1043 |
Signature.toString("Lx.y.A$Inner;")); |
1032 |
} |
1044 |
} |
1033 |
|
1045 |
|
|
|
1046 |
/* |
1047 |
* Ensures that the toString() signature of a member type with a number in its name is correct |
1048 |
* (regression test for bug 180713 Anonymous type rendered as number in hover) |
1049 |
*/ |
1050 |
public void testToStringInnerType2() { |
1051 |
assertEquals( |
1052 |
"Signature#toString is not correct", |
1053 |
"X.Y1", |
1054 |
Signature.toString("LX$Y1;")); |
1055 |
} |
1056 |
|
1034 |
/** |
1057 |
/** |
1035 |
* @see Signature#getTypeSignatureKind(String) |
1058 |
* @see Signature#getTypeSignatureKind(String) |
1036 |
*/ |
1059 |
*/ |