- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.1k
          Make -usejavacp a private setting as -Yusejavacp
          #24304
        
          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
base: main
Are you sure you want to change the base?
Conversation
| Is it possible to have deprecated aliases? | 
| I really believe we should completely remove it. I'm not convinced of any of the arguments I've heard so far... | 
| 
 It's been discussed, but we never implemented deprecating aliases, unfortunately. | 
…API as an alias)
b508e87    to
    2165922      
    Compare
  
    | 
 It's extremely useful for unit tests that instantiate the compiler, in scala/scala there are lots of such uses. It would be cumbersome to manually assemble a symbol table classpath, we'd have to get information from the build tool to the test runtime. Examples | 
| 
 It would be cumbersome but it would be the correct usage of the compiler. We do that in Scala3. Vulpix doesn't use the underlying classpath and reconstruct them manually. See: scala3/compiler/test/dotty/tools/vulpix/ParallelTesting.scala Lines 644 to 655 in 04389c6 
 scala3/compiler/test/dotty/tools/vulpix/ParallelTesting.scala Lines 658 to 668 in 04389c6 
 So if Scala 2 (years ago) did it for simplicity or whatever reason, I don't see it stand as a solid argument (Scala 3 took the time to have a correct testing suite). | 
| It's a simple and reliable way to get a symbol classpath that's in sync with the library / compiler that we want to test, and we did it for 20 years without issues, one could see that as a solid argument in favor 😉 | 
| 
 I'm not saying it doesn't work. It does work to some extend. I'm saying it should have not existed in the first place and the underlying runtime is different from the compiler space. What if we are to compile the compiler with Scala.js and run it on the browser for scastie for example? How would this specific flag work and how it would be implemented when you don't have an underlying JVM? | 
| ...that aside, any clue about the  | 
| I understand your points, it seems we don't come to the same conclusion. I agree it should be, should always have been, a  | 
as per #24247 (comment):
usejavacpsetting would now beYusejavacp(a fork setting, rather than root)-usejavacp/--usejavacp/--use-java-class-path) would be preserved as aliases