After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765070 - Java: final keyword on a parameter brakes docs inherinance
Java: final keyword on a parameter brakes docs inherinance
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.11
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2016-04-14 20:07 UTC by Misha
Modified: 2016-09-05 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
doxygen-final.zip (26.74 KB, application/x-zip-compressed)
2016-04-14 20:09 UTC, Misha
Details

Description Misha 2016-04-14 20:07:16 UTC
*Preface*
Let's imagine we have an interface A and a class B, where B implements A.

public interface A {
    /**
     * Cool description.
     */
    void method(int parameter);
}

public class B implements A {
    @Override
    public void method(final int parameter) {
    }
}

*The problem*
In case 'finality' of parameters in the class doesn't match exactly 'finality' of parameters in the interface (in other words the class B marks some parameters final while the interface A doesn't or vice-versa) the class B won't inherit the docs from the interface A.

*Expected result*
'final' keyword used on parameters doesn't affect inheritance as it's not a part of method signature.
The class B should inherit the docs from the interface A even if there is a difference in 'finality' of parameters.

Attached:
doxygen-final.zip -- cnfig and source files that shows the problem
Comment 1 Misha 2016-04-14 20:09:52 UTC
Created attachment 326052 [details]
doxygen-final.zip
Comment 2 Dimitri van Heesch 2016-05-07 18:00:07 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 3 Dimitri van Heesch 2016-09-05 13:46:20 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.12. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).