Skip to content

Spurious import statements for generated elements that do not extend a supertype #243

@raner

Description

@raner

The @Dtd annotation on package pro.projo.generation.interfaces.test.html.baseclasses.otherpackage configures baseInterfaceEmpty=EmptyElement.class.

However, some elements that are declared EMPTY in the DTD do import the EmptyElement type but do not use it as a base type:

package pro.projo.generation.interfaces.test.html.baseclasses.otherpackage;
/* */
import javax.annotation.Generated;
import pro.projo.generation.interfaces.test.html.baseclasses.EmptyElement;
/* */
/**
*
* THIS IS A GENERATED INTERFACE - DO NOT EDIT!
*
**/
/* */
@Generated("pro.projo.generation.interfaces.InterfaceTemplateProcessor")
/* */
public interface Area<PARENT>
{
/* */

Other than for Area, this is also the case for Base, Img/ImgAlt/ImgSrc, and Optgroup (which is not actually an EMPTY element 🤔, which still begs the question why the type is imported).
However, other EMPTY elements (link, hr, br, col, ...) import the base type and correctly extend it, so clearly not all EMPTY elements are affected by this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions