You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jarek Gawor (Commented) (JIRA)" <ji...@apache.org> on 2011/11/30 21:13:40 UTC

[jira] [Commented] (KARAF-1067) JDK7 compile issues with OsgiCommandSupport

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

Jarek Gawor commented on KARAF-1067:
------------------------------------

I just ran into this the other day. From what I know so far, the OSGi jars that Karaf complies against are compiled with -target jsr14 option which causes the Java 7 compiler to ignore (or not see) the generic information in the OSGi class files. However, Java 5 or 6 compiler is able to see that generic information. See more information on http://stackoverflow.com/questions/4058661/java-compilers-target-version-jsr14-with-jdk7-8 and the related Java bug report. 

                
> JDK7 compile issues with OsgiCommandSupport
> -------------------------------------------
>
>                 Key: KARAF-1067
>                 URL: https://issues.apache.org/jira/browse/KARAF-1067
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Jamie goodyear
>             Fix For: 3.0.0
>
>
> Building with JDK7 the below error will occur when compiling OsgiCommandSupport.
> error: type ServiceReference does not take parameters

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira