Skip to content

Return deeply nested Java object to Javascript without access to source code #958

Answered by konsoletyper
dangmai asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. I think TeaVM itself can't help you. You can try following solutions:

  1. Edit JAR file's classes using some Java bytecode manipulation library (like ASM) to add missing annotations
  2. Instead of returning library objects from your module, write your own wrappers which would just delegate calls to library classes and annotate your wrappers with @JSExport.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dangmai
Comment options

@dangmai
Comment options

@konsoletyper
Comment options

Answer selected by dangmai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants