I'm generating some classes with javassist that have generics and enums in them from Java 1.5 and I'd like the class files that javassist generates to state that they're for 1.5 and not for 1.1. Is there a way to change this?
In the latest version (3.1 in CVS HEAD),
setMinorVersion() and setMajorVersion() in javassist.bytecode.ClassFile are available. A ClassFile object can
be obtained by getClassFile() in CtClass.