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 UTCShould be Finished on: Thu 06 Jun 2013 10:00:00 PM UTC
Category: WrappersPriority: 5 - Normal
Status: NonePercent Complete: 0%
Assigned to: Paolo Redaelli <Tybor>Open/Closed: Open
Fixed Release: NonePlanned 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
  • -unavailable- added by cadrian (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1