Re: Simple covariant return type

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mathieu Malaterre wrote: I must be doing something wrong, but I do not see what is wrong with the following piece of code (*). Is there a restriction when using ecj as the java compiler ? The manpage for ecj indicates that it is building with

Re: Simple covariant return type

2009-06-25 Thread Mathieu Malaterre
On Thu, Jun 25, 2009 at 10:01 AM, Marcus Bettermar...@better.se wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mathieu Malaterre wrote:   I must be doing something wrong, but I do not see what is wrong with the following piece of code (*). Is there a restriction when using ecj as the

Re: Simple covariant return type

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mathieu Malaterre wrote: So my question: is it ok for package maintainer to use javac -source 1.5 to compile code or will there be some portability glitch (user is alowed to set other java compiler). It's certainly OK, even necessary in this case.

Re: Simple covariant return type

2009-06-25 Thread Onkar Shinde
On Thu, Jun 25, 2009 at 3:07 PM, Marcus Bettermar...@better.se wrote: Mathieu Malaterre wrote: So my question: is it ok for package maintainer to use javac -source 1.5 to compile code or will there be some portability glitch (user is alowed to set other java compiler). It's certainly OK,

Re: Simple covariant return type

2009-06-25 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Onkar Shinde wrote: So my question: is it ok for package maintainer to use javac -source 1.5 to compile code It's certainly OK, even necessary in this case. Please make sure that the package dependencies reflect that the package is built with

Re: Simple covariant return type

2009-06-25 Thread Mathieu Malaterre
On Thu, Jun 25, 2009 at 12:14 PM, Onkar Shindeonkarshi...@ubuntu.com wrote: On Thu, Jun 25, 2009 at 3:07 PM, Marcus Bettermar...@better.se wrote: Mathieu Malaterre wrote: So my question: is it ok for package maintainer to use javac -source 1.5 to compile code or will there be some portability

Simple covariant return type

2009-06-24 Thread Mathieu Malaterre
Hi there, I must be doing something wrong, but I do not see what is wrong with the following piece of code (*). Is there a restriction when using ecj as the java compiler ? This seems to be the default when upload a package with Build-Depends: default-jdk-builddep (*) $ /usr/bin/javac