Property: only add marshal methods (#841)

The issue is that on OpenJ9 adapterCls.getMethods() returns all the classes' methods. The current code add all the methods to "marshalMethods", so marshal methods but also getClass, equals and so on.
On openjdk the marshal method is the first one to pop, which is not the case on OpenJ9, the first one is getClass
So in the second loop:
JavaClass paramType = method.getParameterTypes()[0]; an ArrayIndexOutOfBoundsException is thrown.
The modification will only add to "marshalMethods" methods named marshal with one argument. Which seems to me the wanted behaviour from the start.

Co-authored-by: Yann Diorcet <yann.diorcet@xenocs.com>
1 file changed
tree: 114a95889b10a4c0c7957f46b3b087d878cb3589
  1. bundles/
  2. dbws/
  3. etc/
  4. features/
  5. foundation/
  6. jpa/
  7. moxy/
  8. performance/
  9. plugins/
  10. project-admin/
  11. sdo/
  12. utils/
  13. .gitattributes
  14. .gitignore
  15. .travis.yml
  16. about.html
  17. CONTRIBUTING.md
  18. findbugs-exclude.xml
  19. license.html
  20. NOTICE.md
  21. pom.xml
  22. pom_oracle_test_server.xml
  23. pom_test_server.xml
  24. readme.html
  25. README.md
README.md

EclipseLink 3.0.0 Master Build Status

EclipseLink 2.7.x 2.7.x  Build Status

EclipseLink

The EclipseLink project's goal is to provide a complete persistence framework that is both comprehensive and universal. It will run in any Java environment and read and write objects to virtually any type of data source, including relational databases, XML, JSON, or EIS systems. EclipseLink will focus on providing leading edge support, including advanced feature extensions, for the dominant persistence standards for each target data source; Jakarta Persistence for relational databases, Jakarta XML Binding for XML, Jakarta Connectors for EIS and other types of legacy systems, and Service Data Objects (SDO).

This project is part of the EclipseLink project.

License

EclipseLink is dual licensed under an EPL 2.0 and EDL 1.0 license.

Contributing

We use contribution policy, which means we can only accept contributions under the terms of Eclipse Contributor Agreement.

Links