Skip to content

Conversation

dkimitsa
Copy link
Contributor

Root Case

these methods are added when ByteBuffer is compiled. At next session ByteBuffer class is considered compiled and its structure only parsed (and not desugared) as result de-sugared methods are not present in SootClass as result this produces java.lang.NoSuchMethodError compilation time.

The Fix

trampoline compiler allows now compiler plugin to resolve missing methods. ByteBuffer de-sugaring plugin in this case returns references to target methods.

…d compilation session

Root Case: these methods are added when ByteBuffer is compiled. At next session ByteBuffer class is considered compiled and its structure only parsed (and not desugared) as result de-sugared methods are not present in SootClass as result this produces `java.lang.NoSuchMethodError` compilation time.

Fix: in trampoline allow compiler plugin to resolve missing methods. ByteBuffer de-sugaring plugin in this case returns references to target methods.
@dkimitsa
Copy link
Contributor Author

it fixes #667

@Tom-Ski Tom-Ski merged commit 02f50b1 into MobiVM:master Aug 30, 2022
@dkimitsa dkimitsa deleted the fix/667-bytebuffer-desuggaring-fails branch March 29, 2023 19:00
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.

2 participants