[kepler-dev] [Bug 4424] New: - KeplerLSID should implement hashCode

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Tue Sep 29 16:42:42 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4424

           Summary: KeplerLSID should implement hashCode
           Product: Kepler
           Version: 1.x dev
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: core
        AssignedTo: aschultz at nceas.ucsb.edu
        ReportedBy: barseghian at nceas.ucsb.edu
         QAContact: kepler-dev at kepler-project.org


KeplerLSID overrides equals, and so it should therefore override hashCode as
well. 

I suspect this is why doing a map.containsKey(lsid) does not work (the lsid key
is not found, even if it's in there). There was a bug due to this issue in
KARFile. I implemented a little workflow-around and will add a note in the code
referring to this bug. If implementing hashCode() does fix the containsKey
issue, we should revert to the commented out code, as it's cleaner.


More information about the Kepler-dev mailing list