On May 4, 2017 5:40 AM, "Robert Munteanu" <robert.munte...@gmail.com> wrote:
Hi Simon, Not to detract from your main point, but method return types are not part of the method's signature in Java. https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.2 Robert "You are technically correct- the best kind of correct!" :) The relevant JLS binary compatibility rule combines the result type and signature: https://docs.oracle.com/javase/specs/jls/se8/html/jls-13.html#jls-13.4.15 The JVMS talks in terms of "method descriptors", which are where the link lossage happens: http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.3.3 It does have a concept of method signatures, which are attributes used to support reflection on parameterized methods. The definition in the JVMS includes (amongst other things) the result type... However, this isn't relevant to what I was talking about, so you're still right. Simon
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev