eclipse-ee4j / jaxb-fi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in StAXDocumentParser.isWhiteSpace()

Tomas-Kraus opened this issue · comments

Due to an index-range bug the isWhiteSpace() method may return true for non-whitespace characters:

In line 651 of StAXDocumentParser.java,

for (int i=start; i< length;i++){

should be

for (int i=start; i< start+length;i++){

Affected Versions

[1.2.9]

@glassfishrobot Commented
Reported by beckchr

@glassfishrobot Commented
oleksiys said:
the patch was applied,
will also appreciate if you can contribute the unit test

Thanks a lot in advance.

WBR.

Project: fi
Repository: svn
Revision: 901
Date: 2011-03-08 10:56:05 UTC
Link:

Log Message:

fix issue #42
http://java.net/jira/browse/FI-42

"Bug in StAXDocumentParser.isWhiteSpace()"
Patch is suggested by beckchr

@glassfishrobot Commented
This issue was imported from java.net JIRA FI-42

@glassfishrobot Commented
Marked as fixed on Monday, March 7th 2011, 6:58:30 pm