Skip to content

NoSuchMethodError in BufferUtils.createFloatBuffer() with JDK 8 #1896

@stephengold

Description

@stephengold
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.FloatBuffer.clear()Ljava/nio/FloatBuffer;
	at com.jme3.util.BufferUtils.createFloatBuffer(BufferUtils.java:871)
	at mygame.Main.main(Main.java:7)
  • I can't reproduce this issue in jme3-examples, only in a separate project.
  • I can't reproduce this issue with JDK 11 or 17, only with JDK 8 .
  • I can't reproduce this issue with JME 3.5.2, only with JME 3.6.0-alpha1 .

Will JME 3.6 support Java 1.8?

Here's the test app:

package mygame;

import com.jme3.util.BufferUtils;

public class Main {
    public static void main(String[] arguments) {
        BufferUtils.createFloatBuffer(3);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that is supposed to work, but doesn't. More severe than a "defect".

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions