Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class inheritance leads to some exceptions reporting missing methods #152

Closed
masesdevelopers opened this issue Apr 9, 2023 · 1 comment · Fixed by #157
Closed

Class inheritance leads to some exceptions reporting missing methods #152

masesdevelopers opened this issue Apr 9, 2023 · 1 comment · Fixed by #157
Assignees
Labels
bug Something isn't working JNet JNet related issue

Comments

@masesdevelopers
Copy link
Contributor

masesdevelopers commented Apr 9, 2023

Describe the bug
Some static methods of inherited classes report exceptions signalling missing method

To Reproduce
Steps to reproduce the behavior:

  1. Invoke JFrame.SetDefaultLookAndFeelDecorated(true);
  2. Run the code
  3. See error

Expected behavior
The method must be found because it is available is Java

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Version: latest
  • Java: Temurin JDK 11.0.18-10

Additional context
N/A

@masesdevelopers masesdevelopers added bug Something isn't working JNet JNet related issue labels Apr 9, 2023
@masesdevelopers masesdevelopers self-assigned this Apr 9, 2023
@masesdevelopers
Copy link
Contributor Author

masesdevelopers commented Apr 10, 2023

Mainly the problem comes from a limitation of JVMBridgeBase<T> because in some inheritance generated from JNetReflector the Clazz property does not have any knowledge of the child class, but knows only the parent direct definition.
The solution needs an evolution of the JCOBridge APIs to accept the IJavaType of the right type.

@masesdevelopers masesdevelopers changed the title Class inheritance leeds to some exceptions reporting missing methods Class inheritance leads to some exceptions reporting missing methods Apr 11, 2023
masesdevelopers added a commit to masesdevelopers/JNet that referenced this issue Apr 15, 2023
masesdevelopers added a commit that referenced this issue Apr 15, 2023
…sing methods (#157)

* #152: added management of static class IJavaType in inherited classes

* #38: update to JCOBridge 2.5.6

* #53: update to version to 1.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JNet JNet related issue
Projects
None yet
1 participant