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

Mike van Dongen commented on CELIX-74:
--------------------------------------

I agree this is not really a bug.
Though when a user includes the customizer first and the service reference 
second, this will result in an error:
`celix/include/service_tracker_customizer.h:36:60: error: expected declaration 
specifiers or ‘...’ before ‘service_reference_pt’`

It's the header that has a dependency, so IMHO the header should solve this.

Maybe 'critical' is a bit too much, as we shouldn't handle this pro-actively 
and search every header for missing dependencies ;)
                
> The serviceTrackerCustomizer header uses, but does not include, the 
> serviceReference header.
> --------------------------------------------------------------------------------------------
>
>                 Key: CELIX-74
>                 URL: https://issues.apache.org/jira/browse/CELIX-74
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Mike van Dongen
>            Priority: Critical
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> The header file 'service_tracker_customizer.h' has references to the type 
> service_reference_pt but this type is not known.
> The header file 'service_reference.h' defines the type but is not included.
> This bug can be reproduced by simply including 'service_tracker_customizer.h' 
> in an empty project without other Celix includes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to