-
Notifications
You must be signed in to change notification settings - Fork 21
Strange behaviour when compiling java files with protected inner interface #4402
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4402?orig=1 |
@hubertp said: |
@odersky said: |
@hubertp said: |
@odersky said: |
vector said: I am using the Scala Eclipse Plugin with tho following version: So I think the previous fix is included. Test1.scala import test2.Test2;
class Test1 extends Test2 {
new Test2.A()
} test2/Test2.java package test2;
public class Test2 {
protected static final class A {
public A() {
}
}
} The error is: Thank you very much. |
@odersky said: |
=== What steps will reproduce the problem (please be specific and use wikiformatting)? ===
test/Foo.java
other/Bar.java
ohmy/A.scala
=== What is the expected behavior? ===
Well, at least the error message seems misleading to me. Not sure if this should compile anyway, judging from the reply to bug #3934.
Java compiles fine.
Also not forcing the type by compiling only
finishes successfully. So I would expect some consistency here.
=== What do you see instead? ===
btw java files like this are created through protobuf, therefore if possible it would be useful to fix something here.
The text was updated successfully, but these errors were encountered: