[
https://issues.apache.org/jira/browse/XERCESJ-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850149#action_12850149
]
Michael Glavassevich commented on XERCESJ-1431:
-----------------------------------------------
They are bugs only if they are reachable through invocations of supported APIs.
For example, the entire DOMUtil.copyInto() method is dead code. It's an
internal method. Nothing within Xerces calls it and so it's not possible for an
end user to hit any problem within that method. The same goes for
RangeToken.dumpRanges(). Also dead code. As for XIncludeTextReader.getReader()
the statement that it's guaranteed to dereference a null value is wrong. It may
never be null in the scenarios in which the class is used.
> Findbugs Warnings
> -----------------
>
> Key: XERCESJ-1431
> URL: https://issues.apache.org/jira/browse/XERCESJ-1431
> Project: Xerces2-J
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.8.1
> Reporter: Marco Tulio Valente
>
> Dear all,
> We are conducting an study about the relevance of the warnings reported by
> the FindBugs tool when executed over several open-source systems.
> Particularly, in the case of Xerces, we would like to confirm the relevance
> of the following warnings reported by the tool (for Xerces
> 2.8.1):
> Location: org.apache.xerces.impl.xpath.regex.RangeToken dumpRanges - Line 481
> Warning: Possible null pointer dereference. There is a branch of statement
> that, if executed, guarantees that a null value will be dereferenced
> Location: org.apache.xerces.impl.xpath.regex.RangeToken intersectRanges -
> Line 351
> Warning: Self comparison of value with itself. This method compares a local
> variable with itself, and may indicate a typo or a logic error.
> Location: org.apache.xerces.util.DOMUtil copyInto - Line 119
> Warning: Null pointer dereference. A null pointer is dereferenced here. This
> will lead to a NullPointerException when the code is executed.
> Location: org.apache.xerces.xinclude.XIncludeTextReader getReader - Line 181
> Warning: Null value is guaranteed to be dereferenced. There is a statement or
> branch that if executed guarantees that a value is null at this point, and
> that value that is guaranteed to be dereferenced
> Since these warnings seemed relevant to us, we would like to confirm our
> classification with Xerces's developers.
> Best regards,
> Marco Tulio Valente
> Brazil
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]