Skip to content

Conversation

alfonsocv12
Copy link

Check if target.typeParameters gracefully.

I started seeing the failures after updating from 2.3.0-dev-423 to 2.3.0-dev-7988, this is a workaround, the difference that I see in my debugging is that a lot more things are hitting the IrUtils.copyTo from createBridge

@alfonsocv12 alfonsocv12 requested a review from a team as a code owner September 23, 2025 22:36
@alfonsocv12 alfonsocv12 force-pushed the fix/emptyListErrorLowering branch 2 times, most recently from b35db97 to 7ff8e92 Compare September 23, 2025 23:45
@alfonsocv12 alfonsocv12 force-pushed the fix/emptyListErrorLowering branch from 7ff8e92 to e9c2cf3 Compare September 23, 2025 23:46
Copy link
Contributor

@ivandev0 ivandev0 left a comment

Choose a reason for hiding this comment

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

Hi! Thank you for the contribution! I will close this PR because your change is not entirely correct. Please take a look at this and the following commits for the proper solution.

How you can improve in the future.

  1. Always add tests. If you take a look at my commits, you will see that I added tests before fixing anything to show that they are falling. After the fix these tests started to pass, and this is reflected in the commit itself.
  2. Don't rush with changes. The root cause of the issue was in a different place, and the method itself is fine.
  3. Check out the contribution guide.

@ivandev0
Copy link
Contributor

ivandev0 commented Oct 8, 2025

Fixed in b9202f7

@ivandev0 ivandev0 closed this Oct 8, 2025
@alfonsocv12
Copy link
Author

Hello @ivandev0 thank you very much for the suggestions and taking the time to resolve this issue.

Even with this not being the right fix for the issue, I think the error message

Details: Internal error in file lowering: java.lang.IndexOutOfBoundsException: Empty list doesn't contain element at index 0.

Is to obscure to debug, maybe adding this change, but throw an error instead, could be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants