Can JAXB generate a generic class?
        Posted  
        
            by dinesh
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dinesh
        
        
        
        Published on 2009-09-16T04:49:12Z
        Indexed on 
            2010/04/17
            4:03 UTC
        
        
        Read the original article
        Hit count: 288
        
Can I get JAXB 2.0 XJC compiler to generate a generic class for me?
Something as simple as:-
public class Shape<T> {
    T myShape;
    // getter / setter
}
I see references for this in the spec but am not sure I'm reading it right. I always get Object references.
© Stack Overflow or respective owner