Skip to content

Fix visitLoadListShortcut in the ASM generation phase in Painless #70682

@jdconrad

Description

@jdconrad

visitLoadListShortcut currently checks to see if the output from a load requires a cast, but there is a bug in the check to see if a cast is required. The condition for the cast should check if the Painless method return type is not equal to the Java method return type. Right now it checks for equal.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions