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

Exceptions while parsing literal numbers #80

Open
ghost opened this issue Nov 22, 2022 · 0 comments
Open

Exceptions while parsing literal numbers #80

ghost opened this issue Nov 22, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2022

Exception while parsing literal number (during Magic Number detection). For input string: "9494cb964d9e326e" under radix 16

public final class X {
    private X() {
        super(new UUID(0x9494cb964d9e326eL, 0x550468d1c740d863L));
    }
}

Exception while parsing literal number (during Magic Number detection). For input string: "0b1010101010100011101011111011011101011011011001110011010110001011"

    void test_InputByteArray_ReadAllPrimitives_Success() {
        final boolean expectedBoolean = true;
        final byte expectedByte = 0b01100010;
        final short expectedShort = (short) 0b1010111010110110;
        final int expectedInt = 0b11011010111001100011010010001010;
        final long expectedLong = 0b1010101010100011101011111011011101011011011001110011010110001011L;
    }

Exception while parsing literal number (during Magic Number detection). For input string: "0b1010"

        final var duid = DataUnitId.fromInteger(0b1010); 
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

0 participants