Eclipse keeps giving me the error:
The value for annotation attribute Min.value must be a constant expression
But I am most definitely givi
The expression
private static final int MIN_YEAR = Calendar.getInstance().get(Calendar.YEAR) - 1;
will be determined only in run-time, but
private static final int MIN_YEAR = 2013;
is determined in compilation time, so it's allowed since the values in the annotations should be resolved at compilation time and not runtime.