Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSR-45 #15684

Closed
wants to merge 20 commits into from
Closed

JSR-45 #15684

wants to merge 20 commits into from

Conversation

anatoliykmetyuk
Copy link
Contributor

Rebase of #11492 to the latest main. At Scala Center, we're planning to bring this over the finish line.

/cc @Kordyjan

We follow the Kotlin solution to allow inlined code to point
to virtual numbers. We rely on the tooling for proper
navigation. See also:

https://youtrack.jetbrains.com/issue/KT-8628
https://bugs.openjdk.org/browse/JDK-4972961
When emitting the bytecode, line numbers are emitted
for trees. These line numbers are used in call stack
frames. Trees inlined from other files get virtual
numbers.

It appears that, when inlining `call(x)`, the line
number for `call` is emitted before that for `x`.
So, if `x` is coming from the current file, its
line number will be real and will override that
of `call`.
@ckipp01
Copy link
Member

ckipp01 commented May 12, 2023

Just waned to double-check. Now that #17055 is open, can we close this @anatoliykmetyuk ?

@anatoliykmetyuk
Copy link
Contributor Author

Yes, this can be closed.

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.

None yet

3 participants