New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class diagrams and class hierarchy don't work for java generic classes (Origin: bugzilla #583958) #3405

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.5.8 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2009-05-27 05:58:42 +0000, Giorgio Barchiesi wrote:

Please describe the problem:
When a java generic class (something similar to C++ templates) derives from another generic class, and they depend on a type that derives from a base type, the inheritance relationship is not reported on the class diagram, neither is it on the class hierarchy.

Steps to reproduce:

  1. The code being documented includes a class such as:
    public class BaseClass
    {
    ...
    }

  2. The code being documented also includes a class such as:
    public class DerivedClass extends BaseClass
    {
    ...
    }

Actual results:
Class DerivedClass is not shown as a subclass of BaseClass in the class diagrams, nor is it on the class hierarchy.

Expected results:
Class DerivedClass should be reported as derived from BaseClass.

Does this happen every time?
Yes, under the conditions described.

Other information:
I greatly prefer Doxygen to JavaDoc, but this bug does not allow me to use it.
I will put my code in the public domain, in a relatively short time, and I will be glad to publicly recommend doxygen to other developers.

On 2010-05-11 02:30:43 +0000, Edwin F. López A. wrote:

Created attachment 160795
Java source code that triggers the issue of incorrect class diagrams for java generics.

This is a one class file that shows how doxygen misses the generation of correct classes diagrams for inheritance trees when generics are used in the java solution.

For a proper hierarchy generation, run javadoc and compare its results with the documentation generated by doxygen.

Thank you.

On 2010-05-11 02:32:12 +0000, Edwin F. López A. wrote:

This issue was confirmed by me in latest version 1.6.3. Running on ubuntu server 9.04.

On 2014-08-14 18:39:33 +0000, Dimitri van Heesch wrote:

*** Bug 631675 has been marked as a duplicate of this bug. ***

On 2014-08-14 18:39:54 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-08-21 17:15:33 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.8. 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 (preferrably in the form of a self-contained example).

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment