[ http://issues.apache.org/struts/browse/WW-1285?page=comments#action_37465 
] 

Chris Mountford commented on WW-1285:
-------------------------------------

I just tried out Webwork 2.2.2 downloaded from Open Symphony. It seems that 
this won't run under JDK1.5 without first compiling the webwork jar with the 
same jdk, the generic Map<K,V> class used to compile under quickstart is seen 
as a different type to the raw one used in JDK1.4. 

My guess is you could run it under 1.4.x (as long as you remove the class files 
that quickstart seems to lazily compile) or you could build your own webwork 
jar against the 1.5 jdk and then it would work because they'd be using the same 
Map.

The full set of compile errors leads me to conclude this, it is as follows:

error:com/opensymphony/webwork/example/ajax/actions/ActiveCategory.java 
(19:530) : The type ActiveCategory must implement the inherited abstract method 
SessionAware.setSession(Map)
error:com/opensymphony/webwork/example/ajax/actions/SetActiveCategory.java 
(18:429) : The type SetActiveCategory must implement the inherited abstract 
method SessionAware.setSession(Map)
warning:com/opensymphony/webwork/example/ajax/actions/SetActiveCategory.java 
(38:1035) : Type safety: The method put(Object, Object) belongs to the raw type 
Map. References to generic type Map<K,V> should be parameterized
warning:com/opensymphony/webwork/example/ajax/cart/DefaultCart.java (25:663) : 
Type safety: The method put(Object, Object) belongs to the raw type Map. 
References to generic type Map<K,V> should be parameterized
warning:com/opensymphony/webwork/example/ajax/cart/DefaultCart.java (39:1111) : 
Type safety: The method put(Object, Object) belongs to the raw type Map. 
References to generic type Map<K,V> should be parameterized
warning:com/opensymphony/webwork/example/ajax/cart/DefaultCart.java (50:1373) : 
Type safety: The constructor HashSet(Collection) belongs to the raw type 
HashSet. References to generic type HashSet<E> should be parameterized
warning:com/opensymphony/webwork/example/ajax/catalog/TestCatalog.java 
(43:1889) : Type safety: The constructor HashSet(Collection) belongs to the raw 
type HashSet. References to generic type HashSet<E> should be parameterized
warning:com/opensymphony/webwork/example/ajax/catalog/TestCatalog.java 
(47:1980) : Type safety: The constructor HashSet(Collection) belongs to the raw 
type HashSet. References to generic type HashSet<E> should be parameterized
warning:com/opensymphony/webwork/example/ajax/catalog/TestCatalog.java 
(63:2559) : Type safety: The method add(Object) belongs to the raw type Set. 
References to generic type Set<E> should be parameterized
warning:com/opensymphony/webwork/example/ajax/catalog/TestCatalog.java 
(83:3042) : Type safety: The method put(Object, Object) belongs to the raw type 
Map. References to generic type Map<K,V> should be parameterized
warning:com/opensymphony/webwork/example/ajax/catalog/TestCatalog.java 
(136:4383) : Type safety: The method put(Object, Object) belongs to the raw 
type Map. References to generic type Map<K,V> should be parameterized




> Quickstart doesn't work with Shopping Cart app
> ----------------------------------------------
>
>          Key: WW-1285
>          URL: http://issues.apache.org/struts/browse/WW-1285
>      Project: Struts Action 2
>         Type: Bug

>   Components: Examples
>     Reporter: Don Brown
>     Assignee: Don Brown
>      Fix For: 2.0

>
> Quickstart won't deploy the Shopping Cart webapp due to several compilation 
> errors:
> error:org/apache/struts/action2/example/ajax/actions/SetActiveCategory.java 
> (32:1049) : The type SetActiveCategory must implement the inherited abstract 
> method SessionAware.setSession(Map)
> error:org/apache/struts/action2/example/ajax/actions/ActiveCategory.java 
> (33:1150) : The type ActiveCategory must implement the inherited abstract 
> method SessionAware.setSession(Map)
> The strange thing is the aforemented classes do have a setSession(Map) 
> method.  Any ideas?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to