Skip to content

Commit c8f0712

Browse files
committed
improve the javadoc for the test
1 parent 2d4b765 commit c8f0712

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/jaxp/javax/xml/jaxp/unittest/validation/ValidationTest.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,15 @@ public void startElement(String uri, String localName, String qName, Attributes
143143
}
144144

145145
/**
146-
* Verifies the bug fix for 8349516. The fix adds a guard against empty text
147-
* since calling StreamReader.getTextCharacters with textLength=0 will result
148-
* in IndexOutOfBoundsException.
146+
* Verifies the bug fix for 8349516, which adds a guard against empty text.
147+
* Prior to the fix, calling {@link XMLStreamReader#getTextCharacters() XMLStreamReader#getTextCharacters()}
148+
* with {@code length = 0} resulted in an {@code IndexOutOfBoundsException}.
149149
*
150-
* @throws Exception if the test fails, in which case the parser throws
151-
* IndexOutOfBoundsException.
150+
* This test ensures that the fix prevents such an exception.
151+
*
152+
* @throws Exception if the test fails due to unexpected issues, such as errors
153+
* in creating the schema or reader, or validation errors other than the
154+
* {@code IndexOutOfBoundsException}.
152155
*/
153156
@Test
154157
public void testValidationWithStAX() throws Exception {

0 commit comments

Comments
 (0)