Skip to content

Detect TYPE_USE annotations for extended or implemented classes #662

@raner

Description

@raner

My use case requires me to collect classes that have a TYPE_USE annotation on an extended or implemented type (i.e., after the extends or implements keyword).

For example:

import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE_USE;

public interface Interface {}

@Target(TYPE_USE)
@interface Special {}

class Implementation implements @Special Interface
{
  //...
}

ClassGraph appears to be able to process TYPE_USE annotation in many other scenarios but not the case where the annotation marks an extended or implemented type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions