[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9807) testForSimpleText & testForElText

Denis Maliarevich (JIRA) jira-events at lists.jboss.org
Fri Sep 30 08:29:27 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631512#comment-12631512 ] 

Denis Maliarevich commented on JBIDE-9807:
------------------------------------------

I suppose the reason is in wrong "equals" method comparison.
keySet in one cases has different hasCodes, in others -- even with matching hash "contains" returns null.

Kyes is of nsIDOMNode type which is Mozilla class. So we cannot override equals() method directly. 

Thus previouslly we used Iterator to get the right node mapping.

> testForSimpleText & testForElText
> ---------------------------------
>
>                 Key: JBIDE-9807
>                 URL: https://issues.jboss.org/browse/JBIDE-9807
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>    Affects Versions: 3.3.0.M3
>            Reporter: Denis Maliarevich
>            Assignee: Denis Maliarevich
>            Priority: Minor
>             Fix For: 3.3.0.M4
>
>
> [testForSimpleText |http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk.component--jsf/450/testReport/junit/org.jboss.tools.jsf.vpe.jsf.test/JsfAllTests/testForSimpleText/] & [testForElText|http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk.component--jsf/450/testReport/junit/org.jboss.tools.jsf.vpe.jsf.test/JsfAllTests/testForElText/]
> ----
> java.lang.NullPointerException
> 	at org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2584Test.testForSimpleText(JBIDE2584Test.java:75)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ----
> java.lang.NullPointerException
> 	at org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2584Test.testForElText(JBIDE2584Test.java:115)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ----

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list