You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by John Kaputin <KA...@uk.ibm.com> on 2006/09/07 18:44:37 UTC
Java 5 code used in branch WODEN-44
Oshani,
the WODEN-44 branch contains some Java 5 code. Woden actually supports Java
1.4 upwards, so WODEN-44 has compile errors with a 1.42 JRE. We probably
need to make this clearer for developers and users - it's stated in the
User Guide on the website, but I just noticed it's not in the Release
Notes!
The decision to make Woden's minimum supported Java level 1.4 was taken
when the project first kicked off, in early 2005. And to make the API more
type safe than WSDL4J had been we went with typed Arrays for returned
collections, rather than Java 5 templating available later with Java 5. It
may be that we need to collectively re-think this decision before
stabilizing the API for a 1.0 release, but until that happens we should
stick with Java 1.4 compliance. Factors that may influence Java 1.4 vs
Java 5 support include the likely Java level used by Woden users, including
Axis2.
Could you please change the relevant code to Java 1.4 compliant for now?
thanks,
John Kaputin
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Java 5 code used in branch WODEN-44
Posted by Eran Chinthaka <ch...@opensource.lk>.
+1 to John's comment.
Even in Axis2, we must support jdk 1.4. Since we expect Woden to work
with Axis2, I prefer if we can make Woden also work with JDK 1.4.
At the same time, I assume this was a mistake by Oshani :)
-- Chinthaka
John Kaputin wrote:
> Oshani,
> the WODEN-44 branch contains some Java 5 code. Woden actually supports Java
> 1.4 upwards, so WODEN-44 has compile errors with a 1.42 JRE. We probably
> need to make this clearer for developers and users - it's stated in the
> User Guide on the website, but I just noticed it's not in the Release
> Notes!
>
> The decision to make Woden's minimum supported Java level 1.4 was taken
> when the project first kicked off, in early 2005. And to make the API more
> type safe than WSDL4J had been we went with typed Arrays for returned
> collections, rather than Java 5 templating available later with Java 5. It
> may be that we need to collectively re-think this decision before
> stabilizing the API for a 1.0 release, but until that happens we should
> stick with Java 1.4 compliance. Factors that may influence Java 1.4 vs
> Java 5 support include the likely Java level used by Woden users, including
> Axis2.
>
> Could you please change the relevant code to Java 1.4 compliant for now?
>
> thanks,
> John Kaputin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
Re: Java 5 code used in branch WODEN-44
Posted by Jeremy Hughes <hu...@apache.org>.
You're right. The approach I was suggesting would be to revisit
(remove) the requirement for type safety when using 1.4, but keep it
when using the Java 5 based API. This might be ok as a compromise.
What do you all think?
Cheers,
Jeremy
On 9/8/06, John Kaputin <KA...@uk.ibm.com> wrote:
> That might help with the coding of the internals, but not at the API where
> we have an explicit goal of type safety, so our Java 1.4 approach for
> collections is typed arrays, not untyped Lists. Sounds interesting though -
> thanks for the links.
>
> John Kaputin
>
>
>
>
> "Jeremy Hughes"
> <hughesj@apache.o
> rg> To
> Sent by: woden-dev@ws.apache.org
> jpjhughes@gmail.c cc
> om
> Subject
> Re: Java 5 code used in branch
> 08/09/2006 11:54 WODEN-44
>
>
> Please respond to
> woden-dev@ws.apac
> he.org
>
>
>
>
>
>
> At ApacheCon I saw a nice talk from Torsten Curdt [1] about bytecode
> manipulation. He talked a bit about Retroweaver [2] which is able to
> create Java 1.4 bytecode from Java 5 bytecode. So I thought it would
> be good to investigate whether we could have the type safety of v5
> using generics in the source then in the build process generate a
> woden.jar for 1.4 bytecode and a woden.jar for v5 bytecode.
>
> What I believe will happen (although I need to verify this by trying
> it out!) is projects using the woden.jar with v5 bytecode will get the
> typesafety of v5 generics and see that type safety at compile time
> e.g. List<Binding>. Projects using the woden.jar with v1.4 bytecode
> will get just a List.
>
> I noticed recently the Abdera project (also in incubator) is using
> Retroweaver for something - not sure what though.
>
> [1]
> http://vafer.org/pub/presentations/apachecon%20EU%202006%20-%20bytecode.pdf
> slide 37
> [2] http://retroweaver.sourceforge.net
>
> Cheers,
> Jeremy
>
> On 9/8/06, Oshani Seneviratne <os...@gmail.com> wrote:
> > Hi,
> >
> > On 9/7/06, John Kaputin <KA...@uk.ibm.com> wrote:
> > >
> > > Could you please change the relevant code to Java 1.4 compliant for
> now?
> > >
> >
> > I made the changes and committed the code. It's at revison 441372.
> >
> > Thanks,
> >
> > Oshani
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Java 5 code used in branch WODEN-44
Posted by John Kaputin <KA...@uk.ibm.com>.
That might help with the coding of the internals, but not at the API where
we have an explicit goal of type safety, so our Java 1.4 approach for
collections is typed arrays, not untyped Lists. Sounds interesting though -
thanks for the links.
John Kaputin
"Jeremy Hughes"
<hughesj@apache.o
rg> To
Sent by: woden-dev@ws.apache.org
jpjhughes@gmail.c cc
om
Subject
Re: Java 5 code used in branch
08/09/2006 11:54 WODEN-44
Please respond to
woden-dev@ws.apac
he.org
At ApacheCon I saw a nice talk from Torsten Curdt [1] about bytecode
manipulation. He talked a bit about Retroweaver [2] which is able to
create Java 1.4 bytecode from Java 5 bytecode. So I thought it would
be good to investigate whether we could have the type safety of v5
using generics in the source then in the build process generate a
woden.jar for 1.4 bytecode and a woden.jar for v5 bytecode.
What I believe will happen (although I need to verify this by trying
it out!) is projects using the woden.jar with v5 bytecode will get the
typesafety of v5 generics and see that type safety at compile time
e.g. List<Binding>. Projects using the woden.jar with v1.4 bytecode
will get just a List.
I noticed recently the Abdera project (also in incubator) is using
Retroweaver for something - not sure what though.
[1]
http://vafer.org/pub/presentations/apachecon%20EU%202006%20-%20bytecode.pdf
slide 37
[2] http://retroweaver.sourceforge.net
Cheers,
Jeremy
On 9/8/06, Oshani Seneviratne <os...@gmail.com> wrote:
> Hi,
>
> On 9/7/06, John Kaputin <KA...@uk.ibm.com> wrote:
> >
> > Could you please change the relevant code to Java 1.4 compliant for
now?
> >
>
> I made the changes and committed the code. It's at revison 441372.
>
> Thanks,
>
> Oshani
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Java 5 code used in branch WODEN-44
Posted by Jeremy Hughes <hu...@apache.org>.
At ApacheCon I saw a nice talk from Torsten Curdt [1] about bytecode
manipulation. He talked a bit about Retroweaver [2] which is able to
create Java 1.4 bytecode from Java 5 bytecode. So I thought it would
be good to investigate whether we could have the type safety of v5
using generics in the source then in the build process generate a
woden.jar for 1.4 bytecode and a woden.jar for v5 bytecode.
What I believe will happen (although I need to verify this by trying
it out!) is projects using the woden.jar with v5 bytecode will get the
typesafety of v5 generics and see that type safety at compile time
e.g. List<Binding>. Projects using the woden.jar with v1.4 bytecode
will get just a List.
I noticed recently the Abdera project (also in incubator) is using
Retroweaver for something - not sure what though.
[1] http://vafer.org/pub/presentations/apachecon%20EU%202006%20-%20bytecode.pdf
slide 37
[2] http://retroweaver.sourceforge.net
Cheers,
Jeremy
On 9/8/06, Oshani Seneviratne <os...@gmail.com> wrote:
> Hi,
>
> On 9/7/06, John Kaputin <KA...@uk.ibm.com> wrote:
> >
> > Could you please change the relevant code to Java 1.4 compliant for now?
> >
>
> I made the changes and committed the code. It's at revison 441372.
>
> Thanks,
>
> Oshani
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Java 5 code used in branch WODEN-44
Posted by Oshani Seneviratne <os...@gmail.com>.
Hi,
On 9/7/06, John Kaputin <KA...@uk.ibm.com> wrote:
>
> Could you please change the relevant code to Java 1.4 compliant for now?
>
I made the changes and committed the code. It's at revison 441372.
Thanks,
Oshani
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Java 5 code used in branch WODEN-44
Posted by Arthur Ryman <ar...@gmail.com>.
+1
Woden is intended to become a common component for other systems so we
should run on the most popular JVMs, which which not prerequing Java 5
now. Maybe Woden 2.0 can move to Java 5.
On 9/7/06, John Kaputin <KA...@uk.ibm.com> wrote:
>
> Oshani,
> the WODEN-44 branch contains some Java 5 code. Woden actually supports Java
> 1.4 upwards, so WODEN-44 has compile errors with a 1.42 JRE. We probably
> need to make this clearer for developers and users - it's stated in the
> User Guide on the website, but I just noticed it's not in the Release
> Notes!
>
> The decision to make Woden's minimum supported Java level 1.4 was taken
> when the project first kicked off, in early 2005. And to make the API more
> type safe than WSDL4J had been we went with typed Arrays for returned
> collections, rather than Java 5 templating available later with Java 5. It
> may be that we need to collectively re-think this decision before
> stabilizing the API for a 1.0 release, but until that happens we should
> stick with Java 1.4 compliance. Factors that may influence Java 1.4 vs
> Java 5 support include the likely Java level used by Woden users, including
> Axis2.
>
> Could you please change the relevant code to Java 1.4 compliant for now?
>
> thanks,
> John Kaputin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org