title: Can javap show the original source code lines intermingled with the bytecode like objdump -S?
body: <p>I know this debug information is contained in the .class file when compiling 
  with:</p>
  
  <pre><code>javac -g Main.java
  </code></pre>
  
  <p>and can be observed manually from the <code>LineNumberTable:</code> section of:</p>
  
  <pre><code>javap -c -constants -private -verbose '$&lt;' &gt; '$@'
  </code></pre>
  
  <p>What I want is to make <code>javap</code> display the source in the middle of the bytecode.</p>
  
  <p>Sample input:</p>
  
  <pre><code>public class New {
      public static void main(String[] args) {
          System.out.println(new Integer(1));
      }
  }
  </code></pre>
  
  <p>Actual <code>javap</code> output:</p>
  
  <pre><code>   0: getstatic     #2                  // Field java/lang/System.out:Ljava/io/PrintStream;
     3: new           #3                  // class java/lang/Integer
     6: dup
     7: iconst_1
     8: invokespecial #4                  // Method java/lang/Integer."&lt;init&gt;":(I)V
    11: invokevirtual #5                  // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
    14: return
  LineNumberTable:
    line 3: 0
    line 4: 14
  </code></pre>
  
  <p>Desired javap output:</p>
  
  <pre><code>       System.out.println(new Integer(1));
     0: getstatic     #2                  // Field java/lang/System.out:Ljava/io/PrintStream;
     3: new           #3                  // class java/lang/Integer
     6: dup
     7: iconst_1
     8: invokespecial #4                  // Method java/lang/Integer."&lt;init&gt;":(I)V
    11: invokevirtual #5                  // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
      }
    14: return
  LineNumberTable:
    line 3: 0
    line 4: 14
  </code></pre>
  
  <p>That would make it much easier to interpret <code>javap</code> output.</p>
  
  <p>Similar but more generic question: <a href="https://stackoverflow.com/questions/26870826/how-to-use-javap-to-see-what-lines-of-bytecode-correspond-to-lines-in-the-java-c">How to use javap to see what lines of bytecode correspond to lines in the Java code?</a></p>
  
  <p>I have tried to:</p>
  
  <ul>
  <li>create a feature request at: <a href="http://bugreport.java.com/submit_intro.do" rel="nofollow noreferrer">http://bugreport.java.com/submit_intro.do</a></li>
  <li>send an email to the mailing list: <code>jdk9-dev@openjdk.java.net</code></li>
  </ul>
  
  <p>but there was no reply, and my messages don't even appear on those websites. Not a very open project.</p>