java - type does not take parameters in generics -


i have interface takes generic argument:

package com.lbv.itf;  public interface segment<t extends object> {...} 

and written couple of years back, compiled in 1.6 , built jar, segment.jar

now, have new project using segment.jar , in new project, have class implementing interface:

package com.lbv.impl;   import com.lbv.itf.segment;  public class treesegment implements segment<tree> {...} 

compiling newer class in 1.7 gives error:

type com.lbv.itf.segment not take parameters

it looks obvious segment interface takes parameter somehow, not visible while compiling newer class. known jdk compatibility issue or there missing? of great help.

update: works if compile newer code 1.6 :(. there compatibility issue 1.6 1.7 on generics type parameters?

i using

java 1.6 update 45 64 bit

and

java 1.7 update 60 64 bit

this has happend because legacy code compiled option `

'target=jsr14'

` stripped off type parameters generated code stay compatible older java versions. unfortunately, 1.7 has stopped supporting flag resulting in issue caught me.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -