Documentation comment not retained for aspect-declared class

Create issue
Issue #284 resolved
Jesper Öqvist created an issue

With JastAdd 2.2.2 and 2.3.0, documentation comments for aspect-declared classes are not kept in the generated code. For example, in ExtendJ there is a class Parameterization which is declared in an aspect (java5/frontend/Generics.jrag). The class has a documentation comment but it is removed in the generated code.

Aspect declaration:

  /**
   * Specifies a particular parameterization for a parameterized type or generic method.
   *
   * <p>Parameterizations are used during type lookup to substitute type variable names
   * for type arguments (TypeDecl).
   */
  public class Parameterization {
    ...

Generated code:

/**
 * @ast class
 * @aspect LookupParTypeDecl
 * @declaredat /home/jesper/git/extendj/java5/frontend/Generics.jrag:1057
 */
public class Parameterization extends java.lang.Object {
  ...

Comments (1)

  1. Jesper Öqvist reporter

    Keep doc comments for aspect-declared types

    An error in an if-condition (|| instead of &&) lead to all documentation comments being discarded for aspect-declared types.

    fixes #284 (bitbucket)

    → <<cset bd69693c5232>>

  2. Log in to comment