-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 19, 20
-
b13
-
generic
-
generic
DefaultStyledDocument.setCharacterAttributes() takes in length parameter which as per spec
length - the length >= 0
but in implementation, it only checks for
if (length == 0) {
return;
}
It should be length < 0 as text length cannot be -ve.
Also, need to check if length = 0 is valid or not.
length - the length >= 0
but in implementation, it only checks for
if (length == 0) {
return;
}
It should be length < 0 as text length cannot be -ve.
Also, need to check if length = 0 is valid or not.
- csr for
-
JDK-8292557 DefaultStyledDocument.setCharacterAttributes accepts negative length
- Closed