matthiasblaesing commented on issue #9270:
URL: https://github.com/apache/netbeans/issues/9270#issuecomment-4059961094

   The implementation of `InstanceContent` has a single relevant statement 
(https://bits.netbeans.org/27/javadoc/org-openide-util-lookup/org/openide/util/lookup/InstanceContent.html):
   
   > If inst already exists in the lookup (**equality is determined by object's 
Object.equals(java.lang.Object)) method**) then the new instance replaces the 
old one in the lookup but listener notifications are not delivered in such case.
   
   It does not say anything whether "identity" may change inside the lifecycle.
   
   Simplest solution: Document the constraint (`hashCode` must not change) for 
`InstanceContent`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to