On 5/16/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> Here is my attempt at defining the HashMap using Java Generics:
>
> private HashMap<String, ? extends IRendererFactoryTool>
> rendererFactoryTools = new HashMap<String,? extends
> IRendererFactoryTool>();

The correct declaration should probably be:
private HashMap<String, IRenderFactoryTool> renderFactoryTools = new
HashMap<String, IRenderFactoryTool>();

You also need to make sure you are running java version 1.5 or higher,
as generics are a recent language feature... :-)

-Craig

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to