]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixing several binding-related bugs 15/3015/1
authorJaniSimomaa <JaniSimomaa@DESKTOP-91EJL8G>
Thu, 11 Jul 2019 08:03:23 +0000 (11:03 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 11 Jul 2019 19:34:33 +0000 (19:34 +0000)
commit8e9a5de6f673df657abf19bf88202aa1a79294d7
tree983ad28d6edf7eb21cb165744514860e801a789a
parent60cdd956bae1516f396b6a07323346eb82e52fb4
Fixing several binding-related bugs

* @Optional annotation added duplicate annotations to BindingRequest for
certain classes
* @Identifier annotation was not actually removed from the
BindingRequest
* BindingRequest hashCode calculation used annotation args excluding the
ones possibly found from the clazz.getAnnotations()
* Prevent replacing existing bindings in BindingRepository.classMap

gitlab #313

Change-Id: I774649584c288c197f1f8ca6af78682b296b63d4
(cherry picked from commit 95bce3521a3c97f463c3d533a36a606c7ae6f0aa)
bundles/org.simantics.databoard/src/org/simantics/databoard/Bindings.java
bundles/org.simantics.databoard/src/org/simantics/databoard/binding/factory/BindingRepository.java
bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/BindingRequest.java
bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/ClassBindingFactory.java