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

                 Key: FELIX-2906
                 URL: https://issues.apache.org/jira/browse/FELIX-2906
             Project: Felix
          Issue Type: Bug
          Components: Maven SCR Plugin
    Affects Versions: maven-scr-plugin-1.7.0
            Reporter: Bertrand Delacretaz
            Priority: Minor


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.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to