[ 
https://issues.apache.org/jira/browse/FELIX-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jamie goodyear updated FELIX-2440:
----------------------------------

        Summary: [Karaf] JDK 1.5 build issue - FeaturesServiceTest failure  
(was: [Karaf] JDK 1.5 build issues)
    Description: 
Building Felix Karaf as of rev 957256 using Java 1.5 will result in a build 
error.

The test case failure in FeaturesServiceTest, can be resolved by modifying 
FeaturesServiceImpl to use a TreeSet instead of HashSet in doInstallFeature(), 
and then tweeking the test case to use the values "12345,54321" instead of 
"54321,12345". Please see attached patch file for this issue.



  was:
Building Felix Karaf as of rev 957256 using Java 1.5 will result in various 
build errors.

The first issue is a test case failure in FeaturesServiceTest, this can be 
resolved by modifying FeaturesServiceImpl to use a TreeSet instead of HashSet 
in doInstallFeature(), and then tweeking the test case to use the values 
"12345,54321" instead of "54321,12345". Please see attached patch file for this 
issue.

The second issue is with the use of "StandardEmitterMBean". This class appears 
to only be available as of Java 1.6 
http://java.sun.com/javase/6/docs/api/javax/management/StandardEmitterMBean.html.
 Karaf's FeaturesServiceMBeanImpl extends StandardEmitterMBean, as such this is 
a problem for building with JDK 1.5.

Could we implement our own StandardEmitterMBean or substitute it with another 
available bean?


> [Karaf] JDK 1.5 build issue - FeaturesServiceTest failure
> ---------------------------------------------------------
>
>                 Key: FELIX-2440
>                 URL: https://issues.apache.org/jira/browse/FELIX-2440
>             Project: Felix
>          Issue Type: Bug
>          Components: Karaf
>         Environment: Java 1.5
>            Reporter: Jamie goodyear
>         Attachments: FELIX-2440-part1.patch
>
>
> Building Felix Karaf as of rev 957256 using Java 1.5 will result in a build 
> error.
> The test case failure in FeaturesServiceTest, can be resolved by modifying 
> FeaturesServiceImpl to use a TreeSet instead of HashSet in 
> doInstallFeature(), and then tweeking the test case to use the values 
> "12345,54321" instead of "54321,12345". Please see attached patch file for 
> this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to