-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Native Shared Library Unable To List Names of Annotated Class #8893
Comments
Commands used
|
Invocation Code #include <stdio.h> using namespace System; #pragma managed(push, off) graal_isolate_t* isolateIS = NULL; void InvokeListAnnotatedClass()
} #pragma managed(pop) System::Void Interop::InterviewServiceInterop::ListAnnotatedClass()
} |
Hello @codewithakamathb thank you for reporting the issue that you are facing. Can you please specify the version of GraalVM that you are using as well as your system specification. Thank you. |
Can you also push your reproducer on a public github repo so that we can take a look at it? Thanks. |
Please find git link. https://github.com/codewithakamathb/graalvm/tree/main Please follow read me. If you need any help let me know |
graalvm-ce-java11-22.3.2 |
@kassifar any support or hints? |
Hi @codewithakamathb, we noticed that you are using graalvm-ce-java11-22.3.2. We recommend that you switch to our latest version of GraalVM: GraalVM for JDK 22 Community 22.0.1. Let us know if you are still encountering the same issue when you switch to the aforementioned version. Thank you. |
No it doesnt work |
Hi @codewithakamathb the README that you provided on your repo isn't straightforward. Can you, please, provide us with a step by step description of how to build your code, produce a native image for it and test it. Thank you. |
Earlier we were using IKVM to convert Jar into a .Net library and getting used in both Windows .Net App as well as in Mac via Mono.
We tried to use the same functionality via now Graal using Native Shared Library.
Everything worked seamlessly. Now we encountered a situation where we are listing classes which are annotated via Reflection (using org.reflections.Reflections)
Strange is if I run native-image -jar example.jar followed example.exe it's able to list all annotated classes inside the package via Reflection.
If I try to consume via Native Shared Library having a method which gives annotated class names it's not able to provide a list of annotated classes.
Can someone help me with this. I have attached the jar as well as the .Net application which consumes Native Shared Library. (edited)
Reflection.zip
The text was updated successfully, but these errors were encountered: