java - Repeatable not found when using Spring 4 PropertySource -


we using spring 4.0.1.release in combination jdk6 (this fixed). of course have done config in java usage of @propertysource annotation. leads annoying warning message(s) when compile project gradle:

org\springframework\context\annotation\propertysource.class(org\springframework\context\annotation:propertysource.class): warning: cannot find annotat ion method 'value()' in type 'java.lang.annotation.repeatable': class file java.lang.annotation.repeatable not found

this caused usage of not (in jdk6) existing repeatable class , glad it's warning. love clean output of gradle , annoying because may obfuscate other "real" warnings (like checkstyle...).

maybe faced same problem , got (not hack) solution situation. want see clean output again.

i think problem in spring 4, use @repeatable annotation, has been introduced in java 8.

therefore, if you're not using java 8 you'll continue see problem, @ least until issue fixed.

btw, preventing usage of @scheduled annotation in older jdks java 8. hope fixed soon.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -