I'm grepping for a method getNumBytes in some class file A.class:
$ grep -rn "getNumBytes"
Binary file A.class matches
When I dump its content with javap I can't see my method:
$ javap -c -p A.class > A.human
$ grep "getNumBytes" A.human # <--- nothing ... where did it go?!
Here is a complete minimal example:
$ wget https://repo1.maven.org/maven2/com/squareup/okio/okio/2.9.0/okio-2.9.0.jar
$ mkdir FRESH_DIR
$ cd FRESH_DIR
$ unzip ../okio-2.9.0.jar
$ grep -rn "buildTrieRecursive"
Binary file okio/Options$Companion.class matches
$ javap -c -p -v -constants -l -s okio/Options$Companion.class | grep "buildTrieRecursive"
UPDATE I'm on Windows, and it runs fine. I believe Thomas Kläger is correct that this is a shell issue:
Unable to reproduce.
Output