Skip to content

Custom classes are used in the method of export annotation, and errors are reported during compilation #25

Open

Description

@dingjinhong

Exception in thread "main" de.inetsoftware.jwebassembly.WasmException: Abstract or native method can not be used: java/lang/Object.registerNatives()V
at java.lang.Object.registerNatives(Object.java)
at de.inetsoftware.jwebassembly.module.ModuleGenerator.createInstructions(ModuleGenerator.java:551)
at de.inetsoftware.jwebassembly.module.ModuleGenerator.scanFunctions(ModuleGenerator.java:226)
at de.inetsoftware.jwebassembly.module.ModuleGenerator.prepareFinish(ModuleGenerator.java:279)
at de.inetsoftware.jwebassembly.JWebAssembly.compile(JWebAssembly.java:368)
at de.inetsoftware.jwebassembly.JWebAssembly.compileToBinary(JWebAssembly.java:340)
at de.inetsoftware.jwebassembly.JWebAssembly.compileToBinary(JWebAssembly.java:308)
at TestWasm.main(TestWasm.java:41)

Activity

  1. Horcrux7 commented on Aug 18, 2021

    @Horcrux7
    Member

    Which version of jwebassembly-api do you use? This should be implemented already in version 0.3. Best result will you have with the snapshot version.

  2. fribeiro1 commented on Nov 1, 2021

    @fribeiro1

    I am getting a very similar error when compiling this application.

    I am using JWebAssembly 0.3, OpenJDK 8, and Ubuntu 20.04.

  3. Horcrux7 commented on Nov 2, 2021

    @Horcrux7
    Member

    de.inetsoftware.jwebassembly.WasmException: Abstract or native method can not be used: java/security/AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;

    @fribeiro1 This is not the same. It is another method. This method is not implemented in a released version. You need to use the snapshot version of jwebassembly-api https://github.com/i-net-software/JWebAssembly/wiki/Build-with-Gradle#library-dependencies

  4. fribeiro1 commented on Nov 2, 2021

    @fribeiro1

    de.inetsoftware.jwebassembly.WasmException: Abstract or native method can not be used: java/security/AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;

    @fribeiro1 This is not the same. It is another method. This method is not implemented in a released version. You need to use the snapshot version of jwebassembly-api https://github.com/i-net-software/JWebAssembly/wiki/Build-with-Gradle#library-dependencies

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions