Skip to content

tests with latest master failed with JDK-21 on MacOS #23090

@rssh

Description

@rssh

Compiler version

master of May 2 2024

commit 77401fa (HEAD -> master, origin/master, origin/HEAD)

Minimized example

checkout latest version on dotty with
java version "21" 2023-09-19 LTS
Java(TM) SE Runtime Environment (build 21+35-LTS-2513)
Java HotSpot(TM) 64-Bit Server VM (build 21+35-LTS-2513, mixed mode, sharing)

cd dotty
sbt compile
sbt test

Output

rssh@rssh4 dotty % sbt test
[info] welcome to sbt 1.10.7 (Oracle Corporation Java 21)
[info] loading global plugins from /Users/rssh/.sbt/1.0/plugins
[info] loading settings for project dotty-build-build from build.sbt...
[info] loading project definition from /Users/rssh/packages/dotty/dotty/project/project
[info] loading settings for project dotty-build from build.sbt, plugins.sbt...
[info] loading project definition from /Users/rssh/packages/dotty/dotty/project
[info] loading settings for project scala3 from build.sbt...
[info] resolving key references (46024 settings) ...
[info] set current project to scala3 (in build file:/Users/rssh/packages/dotty/dotty/)
[info] compiling 2 Scala sources to /Users/rssh/packages/dotty/dotty/tasty/target/scala-3.7.0-RC4/test-classes ...
[info] Unpacking scalajs-ir sources to /Users/rssh/packages/dotty/dotty/compiler/../out/bootstrap/scala3-compiler-bootstrapped/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/src_managed/main/scalajs-ir-src...
[info] compiling 137 Scala sources and 3 Java sources to /Users/rssh/packages/dotty/dotty/compiler/target/scala-3.7.0-RC4/test-classes ...
[info] compiling 5 Java sources to /Users/rssh/packages/dotty/dotty/sbt-bridge/src/target/classes ...
[info] compiling 104 Scala sources and 25 Java sources to /Users/rssh/packages/dotty/dotty/out/bootstrap/scala3-library-bootstrapped/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes ...
[info] Test run dotty.tools.tasty.BuildTastyVersionTest started
[info] Test dotty.tools.tasty.BuildTastyVersionTest.testBuildTastyVersion started
[info] Test run dotty.tools.tasty.BuildTastyVersionTest finished: 0 failed, 0 ignored, 1 total, 0.269s
[info] Test run dotty.tools.tasty.TastyVersionFormatTest started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.reject_ExperimentalReadFinal_GTEqualMinor started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.accept_FinalReadFinal_LTEqualMinor started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.accept_ExperimentalReadFinal_LTMinor started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.reject_ExperimentalReadNEExperimental started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.reject_NEMajor started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.reject_FinalReadFinal_GTMinor started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.accept_ExperimentalReadEQExperimental_EQMinor started
[info] Test dotty.tools.tasty.TastyVersionFormatTest.reject_FinalReadExperimental started
[info] Test run dotty.tools.tasty.TastyVersionFormatTest finished: 0 failed, 0 ignored, 8 total, 0.01s
[info] Passed: Total 9, Failed 0, Errors 0, Passed 9
[info] compiling 8 Scala sources to /Users/rssh/packages/dotty/dotty/out/bootstrap/tasty-core-bootstrapped/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes ...
[info] Test run dotty.tools.dotc.classpath.JrtClassPathTest started
[info] Test dotty.tools.dotc.classpath.JrtClassPathTest.lookupJavaClasses started
[info] Test run dotty.tools.dotc.classpath.JrtClassPathTest finished: 0 failed, 0 ignored, 1 total, 0.454s
[info] Test run dotty.tools.io.AbstractFileTest started
[info] Test dotty.tools.io.AbstractFileTest.t6450 started
[info] Test run dotty.tools.io.AbstractFileTest finished: 0 failed, 0 ignored, 1 total, 0.026s
[info] Test run dotty.tools.dotc.parsing.ParserEdgeTest started
[info] Test dotty.tools.dotc.parsing.ParserEdgeTest.t9944 respect line separator started
[info] compiling 600 Scala sources and 8 Java sources to /Users/rssh/packages/dotty/dotty/out/bootstrap/scala3-compiler-bootstrapped/scala-3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes ...
[info] Test run dotty.tools.dotc.parsing.ParserEdgeTest finished: 0 failed, 0 ignored, 1 total, 1.087s
[info] Test run dotty.tools.dotc.core.tasty.PathPicklingTest started
[info] Test dotty.tools.dotc.core.tasty.PathPicklingTest.test started
[info] Test run dotty.tools.dotc.core.tasty.PathPicklingTest finished: 0 failed, 0 ignored, 1 total, 3.278s
[info] Test run dotty.tools.backend.jvm.ClassfileParserTest started
[info] Test dotty.tools.backend.jvm.ClassfileParserTest.noConstantPoolLag started
[info] Test run dotty.tools.backend.jvm.ClassfileParserTest finished: 0 failed, 0 ignored, 1 total, 0.003s
[info] Test run dotty.tools.dotc.FromTastyTests started
[info] Test dotty.tools.dotc.FromTastyTests.runTestFromTasty started
[======================================> ] completed (1643/1645, 0 failed, 188s)class file /modules/java.base/java/lang/reflect/AccessFlag.class is broken, reading aborted with class java.lang.RuntimeException
Full error output:
╭┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╮
┆class file /modules/java.base/java/lang/reflect/AccessFlag.class is broken, reading aborted with class java.lang.RuntimeException┆
┆bad constant pool index: 0 at pos: 5189 ┆
╰┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄╯
[======================================> ] completed (1643/1645, 0 failed, 188s)-- [E006] Not Found Error: tests/run/backwardsCompat-implicitParens/Test_2.scala:7:14 ----------------------------------
7 | println(new Bar(""))
| ^^^
| Not found: type Bar
|
| longer explanation available when compiling with -explain
-- [E006] Not Found Error: tests/run/backwardsCompat-implicitParens/Test_2.scala:8:10 ----------------------------------
8 | println(Bar(""))
| ^^^
| Not found: Bar

Expectation

dorty tests should pass

Metadata

Metadata

Labels

area:jdkIssues tied to artifacts published under a particular jdkcompat:javagood first issuePerfect for someone who wants to get started contributinghelp wanteditype:bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions