Skip to content

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Mar 26, 2025

I'm not quite sure how to work with primitive types that cannot be represented directly in the constant pool (byte, short, char). So the test is not complete.

NOTE: In Gizmo1, we have some autoboxing functionality implemented. It might make sense to consider something similar in Gizmo2. @Ladicek knows probably more...

@mkouba mkouba requested review from dmlloyd and Ladicek March 26, 2025 12:57
@Ladicek
Copy link
Contributor

Ladicek commented Mar 26, 2025

Yeah there's a couple things that you have to do explicitly in current state of Gizmo 2 (boxing/unboxing, but also capturing variables in lambdas/anonymous classes) that were implicit in Gizmo 1. Not sure how I feel about that.

Comment on lines +77 to +78
// WORKAROUND: we need to use local vars for types where unboxing involves cmp/cmpg
// TODO: file a new issue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@dmlloyd
Copy link
Member

dmlloyd commented Mar 26, 2025

Yeah there's a couple things that you have to do explicitly in current state of Gizmo 2 (boxing/unboxing, but also capturing variables in lambdas/anonymous classes) that were implicit in Gizmo 1. Not sure how I feel about that.

We can definitely improve some of that. I just went for the shortest path to completion in a lot of cases. I think we could probably implement decent autoboxing/unboxing though.

@dmlloyd dmlloyd merged commit 786f42e into quarkusio:2.x Mar 26, 2025
2 checks passed
@mkouba mkouba moved this to Done in WG - Gizmo 2 Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants