title: type does not take parameters in generics
body: <p>I have an interface that takes a generic argument:</p>
  
  <pre><code>package com.lbv.itf;
  
  public interface Segment&lt;T extends Object&gt; {...}
  </code></pre>
  
  <p>and this was written couple of years back, compiled in 1.6 and built into a jar, say segment.jar</p>
  
  <p>Now, I have a new project using segment.jar and in this new project, I have a class implementing this interface:</p>
  
  <pre><code>package com.lbv.impl; 
  
  import com.lbv.itf.Segment;
  
  public class TreeSegment implements Segment&lt;Tree&gt; {...}
  </code></pre>
  
  <p>compiling this newer class in 1.7 gives this error:</p>
  
  <blockquote>
    <p>type com.lbv.itf.Segment does not take parameters</p>
  </blockquote>
  
  <p>It looks so obvious that Segment interface takes the parameter but somehow, that is not visible while compiling the newer class. Is this a known JDK compatibility issue or is there something I am missing? Any help will be of great help.</p>
  
  <p><strong>UPDATE:</strong>
  It works only if I compile the newer code 1.6 :(. Is there a compatibility issue from 1.6 to 1.7 on generics type parameters?</p>
  
  <p>I am using</p>
  
  <blockquote>
    <p>Java 1.6 Update 45 64 bit</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>Java 1.7 Update 60 64 bit</p>
  </blockquote>