Skip to main content

Questions tagged [javap]

javap - The Java Class File Disassembler

1 vote
0 answers
56 views

What does stack=1 (or any integer value) mean in Java bytecode [duplicate]

I've been trying to understand how the bytecode of the following Java code works. I couldn't find the explanation of what the stack=1 and the stack=4 part mean. Java Code: public class ...
Youness's user avatar
  • 57
4 votes
4 answers
20k views

JDK installed but no javap?

I have the JDK 10.0.2 installed, have the cmd opened in the folder of the class files of my program and try the command: javap Simulation.class . I get the error that the command javap is not found. ...
Temerita's user avatar
  • 101
2 votes
1 answer
83 views

Why bytecode sequence number are not continuous

static void heapVar(); Code: 0: iconst_3 1: newarray int 3: dup 4: iconst_0 5: bipush 100 7: iastore 8: dup 9: iconst_1 10: sipush 200 13: iastore 14: ...
cox's user avatar
  • 476
-2 votes
1 answer
633 views

I am trying javap -p classname on scala class but getting error in REPL

scala> class Department( val departmentId: Int, val departmentName: String) defined class Department scala> javap -p Department <console>:12: error: not found: value javap javap -p ...
Mayank Kishore's user avatar
-1 votes
1 answer
47 views

Java byte code classes interpretation

I understand the basic Java bytecode instructions and how fields are referred from the constant pool. But I cannot make my mind around the differences between these 2 lines: java/lang/StringBuilder....
Ben's user avatar
  • 337
0 votes
0 answers
693 views

use javap from within a java program on all the files

I have to implement javap -verbose from within a java program, the directory named folder has multiple classes and i want to use this javap -verbose on all of them so i do, Process p = Runtime....
F_society's user avatar
3 votes
0 answers
470 views

View javap -c output within IntelliJ

I'd like to view Java bytecode the way the command javap -c outputs it, not like the "View Bytecode Plugin". Is there a way to accomplish this? Example: This method public void increment() { c++;...
Nearoo's user avatar
  • 4,813
0 votes
0 answers
841 views

javap not showing the annotation information in the decompiled class

I have a jar with a simple java class like below package org.debraj.pkgcmp.dummy; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import com.google.common....
tuk's user avatar
  • 6,539
0 votes
1 answer
215 views

Is it possible to estimate performance or cyclomatic complexity from decompiled code?

Let's say I have two alternative implementations of an algorithm, or two strategies. I could of course benchmark them with e.g. jmh. But is there any information I could get by looking at the ...
garci560's user avatar
  • 3,133
1 vote
1 answer
395 views

Javap -l does not show me my local variable table

For some reason, Command prompt isn't providing me with a local variable table, even though I am using the -l option. Any suggestion/points? Edit, here is the code for SumSqrt class: public class ...
Karim Timer's user avatar
1 vote
0 answers
1k views

how to map bytecode line number to sourcecode line number

I'm creating a program to find null pointer dereference in java. The methodology used is to first extract java byte code using javap command and then extract control flow graph(CFG) information from ...
Jithin KS's user avatar
  • 161
0 votes
1 answer
580 views

Bad local StackMapTable

I've generated a simple getter method with ASM in an already existent class. mv = cn.visitMethod(access, // public method "get_" + f.name, // name ...
FFY00's user avatar
  • 102
4 votes
2 answers
293 views

In java we can explore a java class, methods by using javap disassembeler. how to do the same in c++?

I'm new to this community so, if I'm violating any t&c of our community by asking this question in wrong section, then I'm sorry. I've been searching answers for the above question for quite a ...
AbhiAbzs's user avatar
  • 154
-1 votes
1 answer
207 views

Object.clone() in javap when using covariant return types in Java

I am reading about covariant return types in Java. I wrote the following code: A parent class: package other; public class Super implements Cloneable { @Override public Super clone() ...
Maksim Dmitriev's user avatar
0 votes
1 answer
82 views

Understanding Type in Compiled Scala File

Given: $cat build.sbt scalaVersion := "2.12.1" $cat src/main/scala/net/X.scala package net trait Foo object X { val a: Int with Foo = 42.asInstanceOf[Int with Foo] println(a + a) } ...
Kevin Meredith's user avatar

15 30 50 per page
1 2
3
4 5
9