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

SI-8907 Don't force symbol info in isModuleNotMethod #4053

Merged
merged 1 commit into from Oct 20, 2014

Conversation

lrytz
Copy link
Member

@lrytz lrytz commented Oct 15, 2014

Test case by Jason.

RefChecks adds the lateMETHOD flag lazily in its info transformer.
This means that forcing the sym.info may change the value of
sym.isMethod.

0ccdb15 introduced a check to force the info in isModuleNotMethod,
but it turns out this leads to errors on stub symbols (SI-8907).

The responsibility to force info is transferred to callers, which
is the case for other operations on symbols, too.

@lrytz lrytz added this to the 2.11.4 milestone Oct 15, 2014
}

def deleteClass(name: String) {
val a1Class = new File(testOutput.path, name + ".class")
Copy link
Member

Choose a reason for hiding this comment

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

I forgot to generalise the prefix a1 out of existence when I refactored this.

@retronym
Copy link
Member

LGTM, this is the right approach for 2.11.4.

Test case by Jason.

RefChecks adds the lateMETHOD flag lazily in its info transformer.
This means that forcing the `sym.info` may change the value of
`sym.isMethod`.

0ccdb15 introduced a check to force the info in isModuleNotMethod,
but it turns out this leads to errors on stub symbols (SI-8907).

The responsibility to force info is transferred to callers, which
is the case for other operations on symbols, too.
gkossakowski added a commit that referenced this pull request Oct 20, 2014
SI-8907 Don't force symbol info in isModuleNotMethod
@gkossakowski gkossakowski merged commit eb15950 into scala:2.11.x Oct 20, 2014
@lrytz lrytz deleted the tmp/t8907 branch November 7, 2014 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants