incubator-celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Broekhuis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CELIX-58) BUNDLE_STATE doesn't have an UNKNOWN state
Date Sat, 05 Oct 2013 18:56:42 GMT

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

Alexander Broekhuis commented on CELIX-58:
------------------------------------------

During testing I needed it to be "NULL" at some point. With java an enumeration can be null,
in C not.

> BUNDLE_STATE doesn't have an UNKNOWN state
> ------------------------------------------
>
>                 Key: CELIX-58
>                 URL: https://issues.apache.org/jira/browse/CELIX-58
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Alexander Broekhuis
>             Fix For: 1.0.0-incubating
>
>         Attachments: bundle.h
>
>
> The bundle_state enum doesn't have an unknown state, this makes it difficult and ambiguous
to check against unset or incorrect states.
> To solve this a BUNDLE_UNKNOWN state can be added (with 0 as value).



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message