• New Feature
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • alexsnaps
  • Reporter: alexsnaps
  • September 06, 2011
  • 0
  • Watchers: 2
  • July 27, 2012
  • January 06, 2012

Description

Based on the ehcache 2.5 beta feedback: “If I annotate a class with @IgnoreSizeOf , how come I have to annotate all the subclasses?” We probably shouldn’t have @IgnoreSizeOf annotated with @Inherited, but add a :

boolean inherited() default false;

to the @IgnoreSizeOf annotation

Comments

Alexander Snaps 2012-01-06

introduced the inherited param, defaults to false

Alexander Snaps 2012-01-11

Looks like http://ehcache.org/documentation/beta/configuration#ignoring-for-size-calculations requires an update. So know you can use @IgnoreSizeOf(inherited = true), which will result in all subclasses being ignored as well. Obviously this will only affect when the annotation is used on a type.