elide
elide copied to clipboard
Fix id type wrong due to no sorted methods from Class.getMethods
The Class.getMethods returns undetermined ordering in OpenJDK which may break the idType.
Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:
@clayreimann @DennisMcWherter ,
Thank you all for the review comments. It sounds like there is a more appropriate way to achieve the same purpose. I'll do some more investigation as per your suggestions and get back with more details.
Hugo
Thanks! Looking forward to seeing the update! :)
1:When MyEntity.class extend AbstractPersistable . This problem while reshow. 2:Because EntityBinding source code cls.getMethods() while get two getId() Methods,have the some ’AnnotationPresent(Id.class)‘,but One is the interface Persistable<T>‘s Method and return Type is Obejct。 3:May be have better method ?
Could you provide a small project that highlights this issue? That way we can experiment and write tests to ensure we don’t break this use case in the future.