Skip to content

Java parser/typer rejects import of Java inner class #8279

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

Closed
scabug opened this issue Feb 13, 2014 · 4 comments
Closed

Java parser/typer rejects import of Java inner class #8279

scabug opened this issue Feb 13, 2014 · 4 comments
Assignees

Comments

@scabug
Copy link

scabug commented Feb 13, 2014

scalac can parse Java sources to break cycles in mixed Scala/Java projects. However, the typer complains about correct (from the Java point of view) imports in Java sources:

package p1;
public class EnclosingClass {
	public class NestedClass {
	}
}
import p1.EnclosingClass.NestedClass;
public class ConsumingClass {
	NestedClass nc;
}

This results in:

NestedClass is not a member of _root_.p1.EnclosingClass.

See IDE #1000361

@scabug
Copy link
Author

scabug commented Feb 13, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8279?orig=1
Reporter: @dragos
Affected Versions: 2.10.3, 2.11.0
See #7675

@scabug
Copy link
Author

scabug commented Feb 13, 2014

@retronym said:
I believe that this is a duplicate of #7675. I will take the test case over to that ticket.

Looks like I tried to fix it once, but didn't quite get there.

@scabug scabug closed this as completed Feb 13, 2014
@scabug
Copy link
Author

scabug commented Feb 13, 2014

@dragos said:
It's similar, but I believe this is the more general description of the problem. I've seen that ticket, but didn't go past the title because the it was "Java class using Scala inner classes" (though it has more comments).

@scabug
Copy link
Author

scabug commented Feb 13, 2014

@retronym said:
I've plagiarised your title for that ticket :)

@som-snytt som-snytt closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants