Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support JEP 476: Module Import Declarations #20530

Open
xuwei-k opened this issue Jun 7, 2024 · 1 comment
Open

support JEP 476: Module Import Declarations #20530

xuwei-k opened this issue Jun 7, 2024 · 1 comment
Labels
area:jdk Issues tied to artifacts published under a particular jdk compat:java:jep:unstable Issues corresponding to a JEP (JDK Enhancement Proposal) which is not stable yet. compat:java:jep Issues corresponding to a JEP (JDK Enhancement Proposal) compat:java itype:bug

Comments

@xuwei-k
Copy link
Contributor

xuwei-k commented Jun 7, 2024

Compiler version

  • 3.3.3
  • 3.4.2
  • 3.5.0-RC1
  • 3.5.1-RC1-bin-20240606-27a3f80-NIGHTLY

Minimized code

$ java --version
openjdk 23-ea 2024-09-17
OpenJDK Runtime Environment (build 23-ea+25-2094)
OpenJDK 64-Bit Server VM (build 23-ea+25-2094, mixed mode, sharing)

B.scala

class B

A.java

import module java.base;

public class A {
}

build.sbt

javacOptions ++= Seq("--enable-preview", "--release", scala.util.Properties.javaSpecVersion)

scalaVersion := "3.5.0-RC1"

project/build.properties

sbt.version=1.10.0

Output

[error] -- Error: /my-example-project/A.java:1:14 ------------------
[error] 1 |import module java.base;
[error]   |              ^^^^
[error]   |              ';' expected but identifier found.
[error] one error found
[error] (Compile / compileIncremental) Compilation failed

Expectation

don't report error

note

@xuwei-k xuwei-k added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Jun 7, 2024
@Gedochao Gedochao added compat:java area:jdk Issues tied to artifacts published under a particular jdk and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Jun 7, 2024
@He-Pin
Copy link

He-Pin commented Jun 7, 2024

Yes more changes in JDK23: https://openjdk.org/projects/jdk/23/

@Gedochao Gedochao added compat:java:jep Issues corresponding to a JEP (JDK Enhancement Proposal) compat:java:jep:unstable Issues corresponding to a JEP (JDK Enhancement Proposal) which is not stable yet. labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:jdk Issues tied to artifacts published under a particular jdk compat:java:jep:unstable Issues corresponding to a JEP (JDK Enhancement Proposal) which is not stable yet. compat:java:jep Issues corresponding to a JEP (JDK Enhancement Proposal) compat:java itype:bug
Projects
None yet
Development

No branches or pull requests

4 participants