Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2906

SCR plugin error with @Property(..., intValue=Integer.MAX_VALUE)

    XMLWordPrintableJSON

Details

    Description

      This annotation

      @Property(name=Constants.SERVICE_RANKING, intValue=Integer.MAX_VALUE)

      causes the plugin to fail:

      Caused by: org.apache.felix.scrplugin.SCRDescriptorException: Unable to load class
      at org.apache.felix.scrplugin.JavaClassDescriptorManager.getJavaClassDescription(JavaClassDescriptorManager.java:429)
      at org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription.getExternalFieldByName(QDoxJavaClassDescription.java:173)
      at org.apache.felix.scrplugin.tags.annotation.Util$1.visitAnnotationFieldRef(Util.java:412)

      The workaround is to import java.lang.Integer

      This is similar to FELIX-1129 but I don't seem to be allowed to reopen that issue.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: