You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2014/01/11 03:17:47 UTC

[exec] Java 5 and generics

Hi All,

Now that [exec] has 'graduated' to Java 5, we are getting a bunch of
generics raw warnings.

It would be nice to get these cleaned up ;)

Gary

-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: [exec] Java 5 and generics

Posted by Benedikt Ritter <br...@apache.org>.
2014/1/11 sebb <se...@gmail.com>

> On 11 January 2014 10:50, Benedikt Ritter <br...@apache.org> wrote:
> > Hi,
> >
> > I'm working on it, but you're invited to help out ;-)
> >
> > Currently I'm not sure if we're going in the right direction here. The
> exec
> > website says that exec fill the need for something like ProcessBuilder in
> > Java < 5. In Java > 5 you would probably use the ProcessBuilder directly.
> > Now we have updated to Java 5, which excludes the only user group that
> had
> > a real need for it from using it :-)
>
> Good point.
>
> However Exec does offer some additional features such as variable
> substitution and watchdog etc that should still be useful in Java 5.
>
> But we should probably rewrite it to get rid of the OS-specific
> classes and privatise/finalise as much as possible.
> So maybe an Exec2 would be a good idea?
> We can then break binary compat.
>

Okay for me. This way we can get generics right (see my reply to you're
commit).

Another thing that needs fixing it the test environment. It just takes
forever. But I currently don't know how to speed things up.


>
> > Benedikt
> >
> >
> > 2014/1/11 sebb <se...@gmail.com>
> >
> >> On 11 January 2014 02:17, Gary Gregory <ga...@gmail.com> wrote:
> >> > Hi All,
> >> >
> >> > Now that [exec] has 'graduated' to Java 5, we are getting a bunch of
> >> > generics raw warnings.
> >> >
> >> > It would be nice to get these cleaned up ;)
> >>
> >> Had a quick look.
> >> Some fixes look easy, but some are not immediately obvious - for
> >> example, the substitution Map values can be String or File (according
> >> to the tests).
> >>
> >> > Gary
> >> >
> >> > --
> >> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> >> > Java Persistence with Hibernate, Second Edition<
> >> http://www.manning.com/bauer3/>
> >> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> >> > Spring Batch in Action <http://www.manning.com/templier/>
> >> > Blog: http://garygregory.wordpress.com
> >> > Home: http://garygregory.com/
> >> > Tweet! http://twitter.com/GaryGregory
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: dev-help@commons.apache.org
> >>
> >>
> >
> >
> > --
> > http://people.apache.org/~britter/
> > http://www.systemoutprintln.de/
> > http://twitter.com/BenediktRitter
> > http://github.com/britter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Re: [exec] Java 5 and generics

Posted by sebb <se...@gmail.com>.
On 11 January 2014 10:50, Benedikt Ritter <br...@apache.org> wrote:
> Hi,
>
> I'm working on it, but you're invited to help out ;-)
>
> Currently I'm not sure if we're going in the right direction here. The exec
> website says that exec fill the need for something like ProcessBuilder in
> Java < 5. In Java > 5 you would probably use the ProcessBuilder directly.
> Now we have updated to Java 5, which excludes the only user group that had
> a real need for it from using it :-)

Good point.

However Exec does offer some additional features such as variable
substitution and watchdog etc that should still be useful in Java 5.

But we should probably rewrite it to get rid of the OS-specific
classes and privatise/finalise as much as possible.
So maybe an Exec2 would be a good idea?
We can then break binary compat.

> Benedikt
>
>
> 2014/1/11 sebb <se...@gmail.com>
>
>> On 11 January 2014 02:17, Gary Gregory <ga...@gmail.com> wrote:
>> > Hi All,
>> >
>> > Now that [exec] has 'graduated' to Java 5, we are getting a bunch of
>> > generics raw warnings.
>> >
>> > It would be nice to get these cleaned up ;)
>>
>> Had a quick look.
>> Some fixes look easy, but some are not immediately obvious - for
>> example, the substitution Map values can be String or File (according
>> to the tests).
>>
>> > Gary
>> >
>> > --
>> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> > Java Persistence with Hibernate, Second Edition<
>> http://www.manning.com/bauer3/>
>> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>> > Spring Batch in Action <http://www.manning.com/templier/>
>> > Blog: http://garygregory.wordpress.com
>> > Home: http://garygregory.com/
>> > Tweet! http://twitter.com/GaryGregory
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
>
> --
> http://people.apache.org/~britter/
> http://www.systemoutprintln.de/
> http://twitter.com/BenediktRitter
> http://github.com/britter

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


Re: [exec] Java 5 and generics

Posted by Benedikt Ritter <br...@apache.org>.
Hi,

I'm working on it, but you're invited to help out ;-)

Currently I'm not sure if we're going in the right direction here. The exec
website says that exec fill the need for something like ProcessBuilder in
Java < 5. In Java > 5 you would probably use the ProcessBuilder directly.
Now we have updated to Java 5, which excludes the only user group that had
a real need for it from using it :-)

Benedikt


2014/1/11 sebb <se...@gmail.com>

> On 11 January 2014 02:17, Gary Gregory <ga...@gmail.com> wrote:
> > Hi All,
> >
> > Now that [exec] has 'graduated' to Java 5, we are getting a bunch of
> > generics raw warnings.
> >
> > It would be nice to get these cleaned up ;)
>
> Had a quick look.
> Some fixes look easy, but some are not immediately obvious - for
> example, the substitution Map values can be String or File (according
> to the tests).
>
> > Gary
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > Java Persistence with Hibernate, Second Edition<
> http://www.manning.com/bauer3/>
> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > Spring Batch in Action <http://www.manning.com/templier/>
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Re: [exec] Java 5 and generics

Posted by sebb <se...@gmail.com>.
On 11 January 2014 02:17, Gary Gregory <ga...@gmail.com> wrote:
> Hi All,
>
> Now that [exec] has 'graduated' to Java 5, we are getting a bunch of
> generics raw warnings.
>
> It would be nice to get these cleaned up ;)

Had a quick look.
Some fixes look easy, but some are not immediately obvious - for
example, the substitution Map values can be String or File (according
to the tests).

> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

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