java:javap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:javap [2023/04/12 15:07] – odefta | java:javap [2023/07/04 19:36] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 45: | Line 45: | ||
} | } | ||
</ | </ | ||
- | + | <note tip>We want to check if all the generic types are erased after the compilation.</ | |
- | We want to check if all the generic types are erased after the compilation.\\ | + | |
<note important> | <note important> | ||
It is located in the JAVA_HOME\bin folder. | It is located in the JAVA_HOME\bin folder. | ||
Line 55: | Line 54: | ||
C: | C: | ||
</ | </ | ||
+ | |||
+ | <note tip>-c parameter is used to display the disassembled code.</ | ||
Result: | Result: | ||
Line 88: | Line 89: | ||
</ | </ | ||
- | <note tip> | + | As we can see in the parameter |
+ | Some consistency checking information still remains in the binary.\\ | ||
+ | But in the main method, the array list passed | ||
+ | |||
+ | ===== Use javap in Intellij IDEA ===== | ||
+ | |||
+ | Install the plugin "Class Decompile." | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Next, right click on your class and select "Show Decompile Code" option. | ||
+ | Result: | ||
+ | |||
+ | {{: | ||
+ | |||
java/javap.1681301230.txt.gz · Last modified: 2023/07/04 19:36 (external edit)