[JAVAEETUTORIAL-198] Wrong usage of type in @Resource Created: 23/Jun/13 Updated: 24/Jun/13 Resolved: 24/Jun/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Examples to the use of @Resource are wrong.
Just to be syntactically correct, the type value either has to be between double quotes, or .class needs to be appended to return the actual Class object. As per the specification, type is defined as "public abstract Class<?> type". Correction of above would look like:
I would suggest to extend this case by means of a regex search through the documentation.
|Comment by Ian Evans [ 24/Jun/13 ]|
Fixed in source. I did a grep through the documentation, and this was the only instance of a class-level @Resource with a type attribute.