Skip to content

MaxValue for uint32 type validated against int32.max #615

@kdkavanagh

Description

@kdkavanagh

Checking to see if this validation implementation is intentional. My expectation was that a uint32 max value would be checked against uint32.max, not int32.max

From CompositeType.java:

 final long maxInt = INT32.maxValue().longValue(); if (primitiveType == UINT32 && longValue > maxInt) { XmlSchemaParser.handleError(node, String.format( "maxValue greater than allowed for type: maxValue=%d allowed=%d", longValue, maxInt)); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions