I have the exact same problem.
Using jbosscache 2.1.1 GA
I cannot use "cache.get(..)" or "cache.put(..)" at all without the message
"The type Fqn is not generic; it cannot be parameterized with arguments <?>"
Won't compile or run.
I ONLY have jdk 1.6 on my box and that's what I have MyEclipse pointing to as well. (Using MyEclipse 6.0.1 GA)
Here's the kicker, Netbeans 6.1, pointing to the same JDK 1.6, has no problem compiling and running my code.
Anyone out there have any ideas?
It sounds like you have an old jboss-cache api jar on your compiler classpath somewhere
Could eclipse (or MyEclipse) be bundling JBC perhaps?