You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Steven Benitez <st...@gmail.com> on 2011/06/04 21:06:44 UTC

Struts2/XWork Java 5 or 6?

It looks like DefaultActionProxy (in XWork) was changed on 5/22 to add the
following code:


    @Override
    public boolean isMethodSpecified()
    {
        return methodSpecified;
    }

This method overrides an interface method and the use of the @Override for
interface methods is Java 6 only. Isn't the Struts2/XWork codebase still
1.5?

RE: Struts2/XWork Java 5 or 6?

Posted by Martin Gainty <mg...@hotmail.com>.
i was worried about that myself..do you have a suggestion
for a backward port from 6 to previous versions?

(good call steve)
Martin 
______________________________________________ 
Note de déni et de confidentialité
 
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sat, 4 Jun 2011 15:06:44 -0400
> Subject: Struts2/XWork Java 5 or 6?
> From: steven.benitez@gmail.com
> To: dev@struts.apache.org
> 
> It looks like DefaultActionProxy (in XWork) was changed on 5/22 to add the
> following code:
> 
> 
>     @Override
>     public boolean isMethodSpecified()
>     {
>         return methodSpecified;
>     }
> 
> This method overrides an interface method and the use of the @Override for
> interface methods is Java 6 only. Isn't the Struts2/XWork codebase still
> 1.5?
 		 	   		  

Re: Struts2/XWork Java 5 or 6?

Posted by Steven Benitez <st...@gmail.com>.
Sounds good.

On Sat, Jun 4, 2011 at 11:33 PM, Maurizio Cucchiara <
maurizio.cucchiara@gmail.com> wrote:

> In order to avoid further problems, I'm going to change Jenkins
> settings, such that it uses 1.5 compiler.
> Any objections?
>
> On 5 June 2011 01:39, Jason Pyeron <jp...@pdinc.us> wrote:
> >> -----Original Message-----
> >> From: Dave Newton [mailto:davelnewton@gmail.com]
> >> Sent: Saturday, June 04, 2011 19:27
> >> To: Struts Developers List
> >> Subject: Re: Struts2/XWork Java 5 or 6?
> >>
> >> Marking interface methods w/ @Override is 1.6 (haven't
> >> checked the OP's code reference though).
> >
> > Good catch, yes it is on an interface defined method. Patch at
> > https://issues.apache.org/jira/browse/WW-3643.
> >
> > Sorry about that. I will add 1.5 to my testing from now on.
> >
> >>
> >> Dave
> >>
> >> On Sat, Jun 4, 2011 at 7:15 PM, Jason Pyeron <jp...@pdinc.us> wrote:
> >> >> -----Original Message-----
> >> >> From: Steven Benitez
> >> >> Sent: Saturday, June 04, 2011 15:07
> >> >> To: Struts Developers List
> >> >> Subject: Struts2/XWork Java 5 or 6?
> >> >>
> >> >> It looks like DefaultActionProxy (in XWork) was changed on
> >> >> 5/22 to add the following code:
> >> >>
> >> >>
> >> >>     @Override
> >> >>     public boolean isMethodSpecified()
> >> >>     {
> >> >>         return methodSpecified;
> >> >>     }
> >> >>
> >> >> This method overrides an interface method and the use of the
> >> >> @Override for interface methods is Java 6 only. Isn't the
> >> >
> >> > Nope, 1.5
> >> >
> >> >
> >> http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Override.ht
> >> > ml
> >> >
> >> >> Struts2/XWork codebase still 1.5?
> >> >>
> >
> > --
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > -                                                               -
> > - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> > - Principal Consultant              10 West 24th Street #100    -
> > - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> > -                                                               -
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > This message is copyright PD Inc, subject to license 20080407P00.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
>
>
>
> --
> Maurizio Cucchiara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Struts2/XWork Java 5 or 6?

Posted by Lukasz Lenart <lu...@googlemail.com>.
2011/6/5 Maurizio Cucchiara <ma...@gmail.com>:
> In order to avoid further problems, I'm going to change Jenkins
> settings, such that it uses 1.5 compiler.
> Any objections?

Very good idea!


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts2/XWork Java 5 or 6?

Posted by Maurizio Cucchiara <ma...@gmail.com>.
In order to avoid further problems, I'm going to change Jenkins
settings, such that it uses 1.5 compiler.
Any objections?

On 5 June 2011 01:39, Jason Pyeron <jp...@pdinc.us> wrote:
>> -----Original Message-----
>> From: Dave Newton [mailto:davelnewton@gmail.com]
>> Sent: Saturday, June 04, 2011 19:27
>> To: Struts Developers List
>> Subject: Re: Struts2/XWork Java 5 or 6?
>>
>> Marking interface methods w/ @Override is 1.6 (haven't
>> checked the OP's code reference though).
>
> Good catch, yes it is on an interface defined method. Patch at
> https://issues.apache.org/jira/browse/WW-3643.
>
> Sorry about that. I will add 1.5 to my testing from now on.
>
>>
>> Dave
>>
>> On Sat, Jun 4, 2011 at 7:15 PM, Jason Pyeron <jp...@pdinc.us> wrote:
>> >> -----Original Message-----
>> >> From: Steven Benitez
>> >> Sent: Saturday, June 04, 2011 15:07
>> >> To: Struts Developers List
>> >> Subject: Struts2/XWork Java 5 or 6?
>> >>
>> >> It looks like DefaultActionProxy (in XWork) was changed on
>> >> 5/22 to add the following code:
>> >>
>> >>
>> >>     @Override
>> >>     public boolean isMethodSpecified()
>> >>     {
>> >>         return methodSpecified;
>> >>     }
>> >>
>> >> This method overrides an interface method and the use of the
>> >> @Override for interface methods is Java 6 only. Isn't the
>> >
>> > Nope, 1.5
>> >
>> >
>> http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Override.ht
>> > ml
>> >
>> >> Struts2/XWork codebase still 1.5?
>> >>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
Maurizio Cucchiara

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


RE: Struts2/XWork Java 5 or 6?

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Dave Newton [mailto:davelnewton@gmail.com] 
> Sent: Saturday, June 04, 2011 19:27
> To: Struts Developers List
> Subject: Re: Struts2/XWork Java 5 or 6?
> 
> Marking interface methods w/ @Override is 1.6 (haven't 
> checked the OP's code reference though).

Good catch, yes it is on an interface defined method. Patch at
https://issues.apache.org/jira/browse/WW-3643.

Sorry about that. I will add 1.5 to my testing from now on.

> 
> Dave
> 
> On Sat, Jun 4, 2011 at 7:15 PM, Jason Pyeron <jp...@pdinc.us> wrote:
> >> -----Original Message-----
> >> From: Steven Benitez
> >> Sent: Saturday, June 04, 2011 15:07
> >> To: Struts Developers List
> >> Subject: Struts2/XWork Java 5 or 6?
> >>
> >> It looks like DefaultActionProxy (in XWork) was changed on
> >> 5/22 to add the following code:
> >>
> >>
> >>     @Override
> >>     public boolean isMethodSpecified()
> >>     {
> >>         return methodSpecified;
> >>     }
> >>
> >> This method overrides an interface method and the use of the 
> >> @Override for interface methods is Java 6 only. Isn't the
> >
> > Nope, 1.5
> >
> > 
> http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Override.ht
> > ml
> >
> >> Struts2/XWork codebase still 1.5?
> >>

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Struts2/XWork Java 5 or 6?

Posted by Dave Newton <da...@gmail.com>.
Marking interface methods w/ @Override is 1.6 (haven't checked the
OP's code reference though).

Dave

On Sat, Jun 4, 2011 at 7:15 PM, Jason Pyeron <jp...@pdinc.us> wrote:
>> -----Original Message-----
>> From: Steven Benitez
>> Sent: Saturday, June 04, 2011 15:07
>> To: Struts Developers List
>> Subject: Struts2/XWork Java 5 or 6?
>>
>> It looks like DefaultActionProxy (in XWork) was changed on
>> 5/22 to add the following code:
>>
>>
>>     @Override
>>     public boolean isMethodSpecified()
>>     {
>>         return methodSpecified;
>>     }
>>
>> This method overrides an interface method and the use of the
>> @Override for interface methods is Java 6 only. Isn't the
>
> Nope, 1.5
>
> http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Override.html
>
>> Struts2/XWork codebase still 1.5?
>>
>
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


RE: Struts2/XWork Java 5 or 6?

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Steven Benitez 
> Sent: Saturday, June 04, 2011 15:07
> To: Struts Developers List
> Subject: Struts2/XWork Java 5 or 6?
> 
> It looks like DefaultActionProxy (in XWork) was changed on 
> 5/22 to add the following code:
> 
> 
>     @Override
>     public boolean isMethodSpecified()
>     {
>         return methodSpecified;
>     }
> 
> This method overrides an interface method and the use of the 
> @Override for interface methods is Java 6 only. Isn't the 

Nope, 1.5

http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Override.html

> Struts2/XWork codebase still 1.5?
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org