Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-4212

Annotation on introduced interface through declareparents causes AspectJ compiler error

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.7.0.RELEASE
    • None
    • INTEGRATION
    • Linux

    Description

      I'm using @DeclareParents to introduce an interface to certain entites. The problem is that when I add the following annotation @JsonView(View.Minimal.class) to the introduced interface, I get the following AspectJ compiler error:

      org.aspectj.ajdt.internal.compiler.lookup.EclipseAnnotationConvertor$MissingImplementationException: Please raise an AspectJ bug. AspectJ does not know how to convert this annotation value [View.Minimal.class]
      at org.aspectj.ajdt.internal.compiler.lookup.EclipseAnnotationConvertor.generateElementValueForNonConstantExpression(EclipseAnnotationConvertor.java:221)
      at org.aspectj.ajdt.internal.compiler.lookup.EclipseAnnotationConvertor.generateElementValue(EclipseAnnotationConvertor.java:129)
      at org.aspectj.ajdt.internal.compiler.lookup.EclipseAnnotationConvertor.generateAnnotation(EclipseAnnotationConvertor.java:100)
      at org.aspectj.ajdt.internal.compiler.lookup.EclipseAnnotationConvertor.convertEclipseAnnotation(EclipseAnnotationConvertor.java:58)
      at org.aspectj.ajdt.internal.compiler.lookup.EclipseResolvedMember.getAnnotations(EclipseResolvedMember.java:102)
      at org.aspectj.weaver.bcel.BcelTypeMunger.mungeMethodDelegate(BcelTypeMunger.java:1413)
      at org.aspectj.weaver.bcel.BcelTypeMunger.munge(BcelTypeMunger.java:112)

      Attachments

        Activity

          People

            aclement Andy Clement
            sebastian.montero Sebastian Montero
            Archiver:
            tmarshall Trevor Marshall

            Dates

              Created:
              Updated:
              Resolved:
              Archived: