Skip to content

BigInteger invocation error for non-valued xdr enums (e.g. enum colors { RED, ORANGE, GREEN }) #55

@jfcjm

Description

@jfcjm

The following xdr definition triggers a NumberFormatException in jrpcgen.translateConstant :

enum colors { RED, ORANGE, GREEN };

Call resolves to new BigInteger("0+1+1",8) where the string "0+1+1" is not a valid number representation.

Remark : When the definition has only two elements (such as enum colors { RED, ORANGE}), there is no error as the call resolves to new BigInteger("0+1",8) where "0+1" is a valid octal representation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions