You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.../src/main/scala/MyRunConfigurationScala.scala
error overriding method clone in trait RunConfiguration of type (): RunConfiguration;
method clone² in class UserDataHolderBase of type (): Object has weaker access privileges; it should be public
where: clone is a method in trait RunConfiguration
clone² is a method in class UserDataHolderBase
class MyRunConfigurationScala extends RunConfigurationBase
Expectation
The code compiles fine.
Note that it compiles with Scala 2 compiler.
Also Java compiler compiles fine a similar code: MyRunConfigurationJava.java
Note that this is a minimised example from the Scala Plugin project.
I tried to extract another module to Scala 3 and got this error.
Java classes are from library (IntelliJ SDK).
The text was updated successfully, but these errors were encountered:
Compiler version
3.3.1
Minimized code
3 Java files
Main Scala File
Output
Compile the code.
Observe compilation error:
Expectation
The code compiles fine.
Note that it compiles with Scala 2 compiler.
Also Java compiler compiles fine a similar code:
MyRunConfigurationJava.java
Note that this is a minimised example from the Scala Plugin project.
I tried to extract another module to Scala 3 and got this error.
Java classes are from library (IntelliJ SDK).
The text was updated successfully, but these errors were encountered: