Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK 16: AssertionError: expected: 8, actual: -12 #11

Open
itsdax opened this issue May 1, 2021 · 1 comment
Open

JDK 16: AssertionError: expected: 8, actual: -12 #11

itsdax opened this issue May 1, 2021 · 1 comment

Comments

@itsdax
Copy link

itsdax commented May 1, 2021

Dependency:

        <dependency>
            <groupId>io.timeandspace</groupId>
            <artifactId>smoothie-map</artifactId>
            <version>2.0.2</version>
        </dependency>

Code:

import io.timeandspace.smoothie.SmoothieMap;

public class Main {

    public static void main(String[] args) {
        SmoothieMap.newBuilder().build();
    }

}

Command:

/Users/me/Library/Java/JavaVirtualMachines/openjdk-16.0.1/Contents/Home/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Dfile.encoding=UTF-8 -classpath /Users/me/projects/HelloJava/target/classes:/Users/me/.m2/repository/io/timeandspace/smoothie-map/2.0.2/smoothie-map-2.0.2.jar:/Users/me/.m2/repository/io/timeandspace/jpsg-core/1.4/jpsg-core-1.4.jar:/Users/me/.m2/repository/org/checkerframework/checker-qual/2.11.1/checker-qual-2.11.1.jar Main

Error:

Exception in thread "main" java.lang.AssertionError: expected: 8, actual: -12
	at io.timeandspace.smoothie.Utils.verifyEqual(Utils.java:63)
	at io.timeandspace.smoothie.InterleavedSegments$FullCapacitySegment.<clinit>(InterleavedSegments.java:605)
	at io.timeandspace.smoothie.InterleavedSegments.allocateSegment(InterleavedSegments.java:2150)
	at io.timeandspace.smoothie.InterleavedSegments.allocateNewSegmentWithoutSettingBitSetAndSet(InterleavedSegments.java:2130)
	at io.timeandspace.smoothie.InterleavedSegments.createNewSegment(InterleavedSegments.java:2137)
	at io.timeandspace.smoothie.SmoothieMap.<clinit>(SmoothieMap.java:291)
	at Main.main(Main.java:6)
@mazhimazh
Copy link

I have this problem

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

No branches or pull requests

2 participants