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
In a discussion, @smarter suggested to emit the constructor as ACC_SYNTHETIC to make it non-accessible from Java, and ignored by mima (see lightbend-labs/mima#92). Note that that change would still be binary compatible with possible existing Java code that would call such constructors (but it would be source incompatible).
Classes with private constructors are actually public at the bytecode level, this creates two issues:
Compiler version
3.2.1
Minimized code
Output
The code compiles.
Expectation
The Java compilation should fail.
Possible solution
In a discussion, @smarter suggested to emit the constructor as
ACC_SYNTHETIC
to make it non-accessible from Java, and ignored by mima (see lightbend-labs/mima#92). Note that that change would still be binary compatible with possible existing Java code that would call such constructors (but it would be source incompatible).Related Scala 2 issue: scala/bug#12711
The text was updated successfully, but these errors were encountered: