title: turn off asmtools class file version check
body: <p>So I have a classes containing bytecode I need to debug ...</p>
  
  <p>Using <a href="https://wiki.openjdk.java.net/display/CodeTools/asmtools" rel="nofollow noreferrer">asmtools</a>' <code>jdis</code> gives me editable bytecode that I then can reassemble using <code>jasm</code>.</p>
  
  <p>Or at least I can MOST of the time.</p>
  
  <p>For this particular class, though, I can disassemble it just fine. If I do nothing to the file and instead immediately try to reassemble it, <code>jasm</code> will claim</p>
  
  <blockquote>
    <p>Error: class file version expected</p>
  </blockquote>
  
  <p>on 69 occasions, most of which seem to be at a <code>local_map</code> or <code>invokestatic</code> instruction, though there are also a few at <code>istore</code> or <code>iconst_1</code> instructions.</p>
  
  <p>I'd say that's an unnecessary check gone haywire. After all, I do have a <code>.class</code> file that runs just fine (except that it's giving me a <code>ClassCastException</code> where there shouldn't be one, but that won't corrupt bytecode).</p>
  
  <p>Can I somehow turn that off?</p>