opensearch-java icon indicating copy to clipboard operation
opensearch-java copied to clipboard

[BUG] Avoid reflection in pathEncode

Open dblock opened this issue 1 year ago • 0 comments

What is the bug?

In https://github.com/opensearch-project/opensearch-java/pull/999 we are using reflection to call pathEncode from the right library. There be dragons.

What is the expected behavior?

Do not use reflection.

Alternatives attempted were to use a common library. A better approach is likely to change the class hierarchy so that the active transport library is doing the encoding.

dblock avatar May 31 '24 18:05 dblock