javac vs. eclipse: another try

H

Hendrik Maryns

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(this time with attachments)

Hello all,

a while ago I reported I had problems getting a project to compile from
the command line which eclipse compiles fine. There seem to be some
differences on how they handle generics (see
http://groups.google.com/group/comp...33a3adeef4/ce48585945d47a0f?#ce48585945d47a0f)

Now I trimmed down my problem to the first error I encounter and want
your advice on how I can solve this.

So I would like to get this running with javac, but preferable also get
to know which of both is wrong, so I can file a bug for them.

So here is the problem: I attached three files: ClosureUtils invokes
ChainedClosure.getInstance(Closure<? super I> closure1, Closure<? super
I> closure2).

javac gives following error:

hendrik@lichtenstein:~/workspace/test Java> javac -classpath
/home/hendrik/workspace/test\ Java/ collections/ClosureUtils.java
collections/ClosureUtils.java:8: <I>getInstance(collections.Closure<?
super I>,collections.Closure<? super I>) in
collections.functors.ChainedClosure cannot be applied to
(collections.Closure<capture of ? super I>,collections.Closure<capture
of ? super I>)
return ChainedClosure.getInstance(closure1, closure2);
^
1 error

TIA, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFFE8DSf8wVQAnB0SYRAj1GAJ9yPtkprRNtqWSPYMJwCMr66gLBXACglInl
GqxBzg/qSp/1rvAh1j6ZnoU=
=U57F
-----END PGP SIGNATURE-----

--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top