As when the annotation is specified on the class and on a method within that class. A warning should probably be logged, but an error should not occur, as it does currently. This behavior can be seen via o.h.test.annotations.immutable.ImmutableTest.