javafxports / javafxmobile-plugin

A gradle plugin for building mobile applications in java.
BSD 3-Clause "New" or "Revised" License
42 stars 19 forks source link

Fix java.nio.*Buffer issues #14

Closed tiainen closed 6 years ago

tiainen commented 6 years ago

Fixes #13. The PR adds code that will convert invocations on java.nio.*Buffer methods to be called on java.nio.Buffer instead for the following methods: clear(), flip(), limit(int), mark(), position(int), reset() and rewind().

It basically changes an invokevirtual bytecode invocation from:

115: invokevirtual #18 // Method java/nio/ByteBuffer.clear:()Ljava/nio/ByteBuffer;

to

115: invokevirtual #71 // Method java/nio/Buffer.clear:()Ljava/nio/Buffer;