Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-33163 Support Java 21 (LTS)
  3. FLINK-33310

Scala before 2.12.18 doesn't compile on Java 21

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.19.0
    • None

    Description

      It fails with

      [ERROR] error:
      [INFO]   bad constant pool index: 0 at pos: 48445
      [INFO]      while compiling: <no file>
      [INFO]         during phase: globalPhase=<no phase>, enteringPhase=<some phase>
      [INFO]      library version: version 2.12.15
      [INFO]     compiler version: version 2.12.15
      ...
      [INFO]   last tree to typer: EmptyTree
      [INFO]        tree position: <unknown>
      [INFO]             tree tpe: <notype>
      [INFO]               symbol: null
      [INFO]            call site: <none> in <none>
      [INFO] 
      [INFO] == Source file context for tree position ==
      
      

      based on release notes 2.12.18 - the first 2.12.x supporting jdk21
      https://github.com/scala/scala/releases/tag/v2.12.18

      Attachments

        Issue Links

          Activity

            People

              Sergey Nuyanzin Sergey Nuyanzin
              Sergey Nuyanzin Sergey Nuyanzin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: