Skip to content

Use regular __CLASS_NAME__ to getParamCode.#233

Closed
warownia1 wants to merge 1 commit into
BobHanson:masterfrom
warownia1:master
Closed

Use regular __CLASS_NAME__ to getParamCode.#233
warownia1 wants to merge 1 commit into
BobHanson:masterfrom
warownia1:master

Conversation

@warownia1

Copy link
Copy Markdown

Method names use non-dollar variant of their parameter names in their name even if inner types are used e.g. myMethod$org_example_Outer_Inner. Clazz._getParamCode was using a $-separated type name resulting in invalid method names produced by java.reflect tools.

THIS CHANGE IS UNTESTED
Please review and test this change. I'm not sure what other places getParamCode was used at that this change might break.

Fix #232

Method names use non-dollar variant of their parameter names in their
name even if inner types are used e.g. myMethod$org_example_Outer_Inner.
Clazz._getParamCode was using a $-separated type name resulting in
invalid method names produced by java.reflect tools.

Fix BobHanson#232
@BobHanson

Copy link
Copy Markdown
Owner

This would revert to prior to commit e5b4842

// BH 2020.07.27 fix for inner class array names

I will check. Please provide the Java code snippet illustrating the problem.

@BobHanson BobHanson left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct file to change is j2sClazz.js

@BobHanson BobHanson closed this Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Methods containing inner types as parameters cannot be found by reflection.

2 participants