taskLiberty Eiffel - Tasks: task #12674, Enums are often wrapped as integers


You are not allowed to post comments on this tracker with your current authentication level.

task #12674: Enums are often wrapped as integers

Submitted by:  Cyril Adrian <cadrian>
Submitted on:  Fri 07 Jun 2013 09:37:35 AM UTC  
Should Start On:  Thu 06 Jun 2013 10:00:00 PM UTC Should be Finished on:  Thu 06 Jun 2013 10:00:00 PM UTC
Category:  Wrappers Priority:  5 - Normal
Status:  None Percent Complete:  0%
Assigned to:  Paolo Redaelli <Tybor> Open/Closed:  Open
Fixed Release:  None Planned Release:  None
Effort:  0.00

Fri 07 Jun 2013 09:37:35 AM UTC, original submission:  


Many enums in the wrappers are wrapped as integers while a more correct way is to write expanded classes inserting the ENUM class.

While it not wrong to use a plain INTEGER it makes easier to break contracts, i.e. using wrong integer values; having expanded classes that inserts ENUM allows the same performance of a plain integer with the correctness of a strongly typed expanded type.

Cyril Adrian <cadrian>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cadrian (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.6