Skip to content

BlockCreator.ne() produces wrong bytecode if the first argument is an integer of value 0 #467

@mkouba

Description

@mkouba

Issue description

It seems there's an optimization that inverts the operator logic:
https://github.com/quarkusio/gizmo/blob/main/src/main/java/io/quarkus/gizmo2/impl/BlockCreatorImpl.java#L477

Metadata

Metadata

Assignees

Labels

2.xIssue applies to Gizmo 2.x

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions