Skip to content

Integer overflow in bean ordering causes inadvertent prioritization #2477

Closed
@bgiddens

Description

@bgiddens

Error is here

The RepositoryRelProvider uses the order with Ordered.LOWEST_PRECEDENCE + 10, indicating lower then the intended lowest precedence. Since the lowest precedence is Integer.MAX_VALUE, this rolls back to a value near Integer.MIN_VALUE, causing this class to have extremely high precedence.

In all likelihood the intended behavior was low but not minimal ordering, i.e. Ordered.LOWEST_PRECEDENCE - 10.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions