Hi Ranchers!
Could anyone remind me something about this generics-related warning?
My jdk is j2se 1.5.0_05.
While compiling the following row(option -Xlint).
Note: getJspContext() returns an Object.
ArrayList<MyImage> articlesList = (ArrayList<MyImage>
getJspContext().getAttribute("imageList", PageContext.REQUEST_SCOPE);
this is the output:
src/it/infomedia/barry/EsempioSimpleTag/taghandlers/PicsTagHandler.java:44: warning: [unchecked] unchecked cast
found :java.lang.Object
required:java.util.ArrayList<it.infomedia.barry.EsempioSimpleTag.model.MyImage>
ArrayList<MyImage> articlesList = (ArrayList<MyImage>
getJspContext().getAttribute("imageList",PageContext.REQUEST_SCOPE);
Why?
Thank you very much.
Regards,
Barry.