Skip to content

NumberFormatException when using negative hexadecimal numbers #3348

@bj0

Description

@bj0

I tried switching from google's protobufs to this project for the better kotlin support, but I am running into to issue that appears to be caused by:

optional int32 someVariable = 3 [default = -0x80000000];
Caused by: java.lang.NumberFormatException: For input string: "x80000000"

It looks like #661 fixed this for positive hexadecimal numbers but not negative ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions