Bug in javac ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Hi all,

I am really unsure here, if this is a javac bug, or an eclipse glitch
or something plain strange. Consider the following interfaces:

public interface A {
    A foo();
}

public interface B {
    B foo();
}

public interface C extends A, B {
    @Override
    C foo();
}

Eclipse _does_ compile those interfaces. If you comment out C foo(),
it (rightfully IMO) complains.
javac does _not_ compile those interfaces and (IMO erroneously)
complains about incompatible super interfaces.

Any ideas who is wrong?


- -- 
Christoph Höger

Technische Universität Berlin
Fakultät IV - Elektrotechnik und Informatik
Übersetzerbau und Programmiersprachen

Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin

Tel.: +49 (30) 314-24890
E-Mail: christoph.hoeger@xxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6uwJMACgkQhMBO4cVSGS/n3wCfYgHh8p0sHNJq+kqqwPf+pe0L
LFsAn1xeoY9ESetBxfqsaWb0SZ3ECYtk
=ke+0
-----END PGP SIGNATURE-----
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux