Open WojciechMazur opened 2 weeks ago
cc @eed3si9n @hamzaremmal @dwijnand
From the comment
It compiles with --server=false only because it's not actually being compiled - it's not emitting bytecode for Java class
It sounds like at the very least there's a difference between java source parsing and java bytecode parsing.
It sounds like at the very least there's a difference between java source parsing and java bytecode parsing.
Scala CLI currently doesn't support Scala/Java mixed compilation with --server=false
.
Refer to:
So it's unrelated, I think.
Based on Open CB failure in
playframework/playframework
- builds logs Extracted from similar issue: https://github.com/scala/scala3/issues/21599#issuecomment-2367548970 - original issue was based on access to private members and was concluded to be working as expected. This case however involves protected members - these AFAIK are considered as public at the bytecode levelCompiler version
3.6.0-RC1-bin-20240915-ad8c21a-NIGHTLY Bisect points to e7d479f80a29c6ae21d0755047e563963b87ac82 / #21362
If you're not sure what version you're using, run
print scalaVersion
from sbt (if you're running scalac manually, usescalac -version
instead).Minimized code
When creating a fix for playframework I've seen one interesting issue in their Netty integration
Output
Fails with
Expectation
Should compile