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
> dotc.bat -deprecation -feature -classpath target\libs\junit-platform-console-standalone-1.5.0.jar -d target\classes src\test\scala\MainTests.scala
exception caught when loading class Status: CyclicReferenceInvolving(class API)
exception caught when loading class API: CyclicReferenceInvolving(class API)
exception caught when loading class API$Status: CyclicReferenceInvolving(class API)
exception caught when loading class Test: CyclicReferenceInvolving(class API)
-- [E046] Cyclic Error: src\test\scala\MainTests.scala:9:3 ---------------------
9 | @Test
| ^
| Cyclic reference involving class API
longer explanation available when compiling with `-explain`
Caught: java.lang.AssertionError: assertion failed: failure to resolve inner class:
externalName = org.apiguardian.api.API$Status,
outerName = org.apiguardian.api.API,
innerName = Status
owner.fullName = org.apiguardian.api.API
while parsing target\libs\junit-platform-console-standalone-1.5.0.jar(org/junit/jupiter/api/DisplayName.class) while parsing annotations in target\libs\junit-platform-console-standalone-1.5.0.jar(org/junit/jupiter/api/DisplayName.class)
Caught: java.lang.AssertionError: assertion failed: failure to resolve inner class:
externalName = org.apiguardian.api.API$Status,
outerName = org.apiguardian.api.API,
innerName = Status
[...]
owner.fullName = org.apiguardian.api.API
while parsing target\libs\junit-platform-console-standalone-1.5.0.jar(org/junit/jupiter/api/Assertions.class) while parsing annotations in target\libs\junit-platform-console-standalone-1.5.0.jar(org/junit/jupiter/api/Assertions.class)
23 warnings found
one error found
where command dotc.bat (see PR #5444) is equivalent to:
Compute the info of synthesized Java annotation constructors lazily,
just like the info of all the other members created by ClassfileParser.
Thanks to noti0na1 for the initial investigation and test case!
The following code snippet works fine with Scala 2.13 but fails with Dotty 0.16-RC3.
Environment setup (in fresh created directory):
Scala source code (
src\test\scala\MainTests.scala
):Scala 2.13 session
Dotty 0.16-RC3 session:
where command
dotc.bat
(see PR #5444) is equivalent to:The text was updated successfully, but these errors were encountered: