jtulach commented on PR #54: URL: https://github.com/apache/netbeans-html4j/pull/54#issuecomment-2585160032
**TBD**: [net.java.html.boot-2.0-SNAPSHOT.jar.gz](https://github.com/user-attachments/files/18385095/net.java.html.boot-2.0-SNAPSHOT.jar.gz) contains the `Agent-Class` attribute in its manifest: ```bash /graalvm-21/bin/java -javaagent:net.java.html.boot-2.0-SNAPSHOT.jar App.java ``` can be used to change change the retention of the `@JavaScriptBody` & co. annotations for `App.java` that looks like this: ```java import net.java.html.js.JavaScriptBody; class App { @JavaScriptBody(args={}, body="") public static native void hello(); public static void main(String... args) throws Exception { var hello = App.class.getMethod("hello"); System.err.println("method: " + hello); System.err.println("ann: " + hello.getAnnotation(JavaScriptBody.class)); } } ``` Executing the program should print: `ann: JavaScriptBody`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
