The existence of the workaround when specializing bean's class extends the raw type of the generic superclass is a bug and should not work.