[ 
https://issues.apache.org/jira/browse/FELIX-4952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618535#comment-14618535
 ] 

Karl Pauls commented on FELIX-4952:
-----------------------------------

I can't think of any reason why it shouldn't target java5. I did add the animal 
sniffer with java1.5 and did set the maven-compiler to target 1.5 too (which 
seems to work). 

Just see if it builds for you now and close this issue if it does - thanks for 
reporting!

> Connect fails to build on Java 1.5
> ----------------------------------
>
>                 Key: FELIX-4952
>                 URL: https://issues.apache.org/jira/browse/FELIX-4952
>             Project: Felix
>          Issue Type: Bug
>          Components: Connect
>            Reporter: Neil Bartlett
>            Assignee: Karl Pauls
>            Priority: Critical
>             Fix For: connect-0.2.0
>
>
> The maven animal sniffer plugin reports the following API violations:
> {noformat}
> [ERROR] 
> /Users/nbartlett/Projects/felix-svn/connect/src/main/java/org/apache/felix/connect/PojoSR.java:107:
>  Undefined reference: java.util.Enumeration 
> java.util.Collections.emptyEnumeration()
> [ERROR] 
> /Users/nbartlett/Projects/felix-svn/connect/src/main/java/org/apache/felix/connect/URLRevision.java:53:
>  Undefined reference: java.util.Enumeration 
> java.util.Collections.emptyEnumeration()
> {noformat}
> Note that the {{Collections.emptyEnumeration()}} method is only available in 
> Java 1.7+.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to