10/30/2023 0 Comments Intellij convert java to kotlin![]() ![]() For example, assume that you’ve created a file named Person.scala that contains the following source code:Ĭlass Person (var name: String, var age: Int) Using javapīecause your Scala source code files are compiled into regular Java class files, you can use the javap command to disassemble them. Use a decompiler to convert your class files back to Java source code.Īll three solutions are shown here. ![]() Use scalac options to see how the compiler converts your Scala source code to Java code.Use the javap command to disassemble a.You can use several different approaches to see how your Scala source code is translated: In the process of learning Scala, or trying to understand a particular problem, you want to examine the source code and bytecode the Scala compiler generates from your original source code. This is Recipe 14.6, “How to disassemble and decompile Scala code.” Problem This is an excerpt from the 1st Edition of the Scala Cookbook (partially modified for the internet). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |