directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Knecht (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSHARED-64) IStates and inherited interfaces/implementing classes shpuld be enums
Date Thu, 28 Oct 2010 16:21:21 GMT

    [ https://issues.apache.org/jira/browse/DIRSHARED-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925859#action_12925859
] 

Felix Knecht commented on DIRSHARED-64:
---------------------------------------

The only class I found implementing/interfacing IStates is Dsmlv2StatesEnum. Because of  "All
enums implicitly extend java.lang.Enum. Since Java does not support multiple inheritance,
an enum cannot extend anything else." [1] I suggest moving the 3 states defined in IState
into Dsmlv2StatesEnum and make this instead an enum.

[1] http://download.oracle.com/javase/tutorial/java/javaOO/enum.html

> IStates and inherited interfaces/implementing classes shpuld be enums
> ---------------------------------------------------------------------
>
>                 Key: DIRSHARED-64
>                 URL: https://issues.apache.org/jira/browse/DIRSHARED-64
>             Project: Directory Shared
>          Issue Type: Improvement
>    Affects Versions: 0.9.19
>            Reporter: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> We should transform this interface to be an Enum

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


Mime
View raw message