Skip to content

Fix #4492: Load module instance instead of calling static methods #4571

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

Merged
merged 1 commit into from
May 24, 2018

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented May 23, 2018

Here we get the Class of the class (not module) and we use null to say that this is a static method. Instead, we should return the class of the module and return the instance of that module by calling the MODULE$ method (or field) on it.

Copy link
Contributor

@biboudis biboudis left a comment

Choose a reason for hiding this comment

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

💯💯💯

@nicolasstucki nicolasstucki merged commit 902f4cb into scala:master May 24, 2018
@allanrenucci allanrenucci deleted the fix-#4492 branch May 24, 2018 15:32
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