Eskil, thanx alot! You bought me to thoughts that sources I am using
is not very legal, I use them from
qtjambi-win32-lgpl-4.5.2_01\doc\html\com\trolltech\qt\gui\QFont.java.
After building Jambi from sources I really can see hashCode() in
sources.

On Thu, Sep 10, 2009 at 1:45 PM, Eskil Abrahamsen Blomfeldt
<[email protected]> wrote:
> Aekold Helbrass skrev:
>>
>> I noticed that some QtJambi classes, for example QFont, overrides
>> equals method but does not overrides hashCode method. First I thoughs
>
> Since Qt Jambi 4.5.2 all classes that implement equals() also implement
> hashCode().
>
> In the cases where a hash code function for the class is not available in
> Qt/C++, the hashCode() function in Java will simply return 0 for all
> objects, to honor the contract between equals() and hashCode(). This can be
> true for classes that are not usually used as hash keys.
>
>> and test apps I see that it works just fine. When I am pressing
>> Ctrl+Click to enter into hashCode method - it shows me
>> operator_equal() method instead. When I am searching for inherited
>
> I don't know which IDE you are using, but the fact that Ctrl+click on a
> hashCode() method (which I assume is supposed to open the definition of the
> hashCode() method) actually opens the definition of a completely different
> method seems like a bug in the tool to me.
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to