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

Java pasted source can't use REPL artifacts #13059

Open
som-snytt opened this issue Nov 14, 2024 · 0 comments
Open

Java pasted source can't use REPL artifacts #13059

som-snytt opened this issue Nov 14, 2024 · 0 comments
Labels
Milestone

Comments

@som-snytt
Copy link

Reproduction steps

Scala version: 2.13.15

scala> :pa -java
// Entering paste mode (ctrl-D to finish)

package p;
public class X {
}

// Exiting paste mode... now compiling with javac.

scala> class Y extends p.X
class Y

scala> :pa
// Entering paste mode (ctrl-D to finish)

package p
class Z extends X

// Exiting paste mode... now compiling with scalac.

but I can't test Java interop from the Java side.

scala> :pa -java
// Entering paste mode (ctrl-D to finish)

package p;
public class W extends Z {
}

// Exiting paste mode... now compiling with javac.
Compilation failed! cannot find symbol
  symbol: class Z

Problem

Testing interop is the point of the feature.

@SethTisue SethTisue added the repl label Nov 14, 2024
@SethTisue SethTisue added this to the Backlog milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants