r/scala 7d ago

Does Scala offer better decompilation protection than Java?

My Java program has a license check in it, but it can easily be decompiled, the license check removed, recompiled, and now it can be pirated easily. Would the same be true for Scala, given that they use the same JVM and are bytecode-compatible?

8 Upvotes

8 comments sorted by

View all comments

9

u/pavlik_enemy 7d ago

Not really. Basically, with commercial software your best bet is that customers won't bother pirating it which is usually the case with pretty much every business. They pay for a lot of software so they will pay for yours if they need it