You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Felix Knecht (JIRA)" <ji...@apache.org> on 2010/10/28 18:21:21 UTC
[jira] Commented: (DIRSHARED-64) IStates and inherited
interfaces/implementing classes shpuld be enums
[ 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.