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

Fix module symbol recovery from NoClassDefFoundError #19645

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

nicolasstucki
Copy link
Contributor

Fixes #19601

if (sym.isDefinedInCurrentRun) Some(sym) else None
val className = message.replace('/', '.')
val sym =
if className.endsWith("$") then staticRef(className.toTermName).symbol.moduleClass
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if className.endsWith("$") then staticRef(className.toTermName).symbol.moduleClass
if className.endsWith(str.MODULE_SUFFIX) then staticRef(className.toTermName).symbol.moduleClass

@nicolasstucki nicolasstucki merged commit 7bcfce2 into scala:main Feb 8, 2024
16 checks passed
@nicolasstucki nicolasstucki deleted the fix-#19601 branch February 8, 2024 17:41
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 2024
nicolasstucki added a commit to dotty-staging/dotty that referenced this pull request Mar 11, 2024
sjrd added a commit that referenced this pull request Mar 11, 2024
WojciechMazur added a commit that referenced this pull request Jul 1, 2024
…LTS (#20889)

Backports #19645 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
WojciechMazur pushed a commit that referenced this pull request Jul 2, 2024
Closes #19909

Probably fixed by #19645

[Cherry-picked 2a97cb4]
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.

NoClassDefFoundError: while executing macro expansion
3 participants