[JIRA] Commented: (CAY-922) Convert non-type-safe enums to Java 5 enums

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Wed Nov 28 2007 - 04:52:44 EST

  • Next message: Aristedes Maniatis: "Making sense of callbacks"

        [ https://issues.apache.org/cayenne/browse/CAY-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12605 ]

    Andrus Adamchik commented on CAY-922:
    -------------------------------------

    Here is a list of candidates for conversion (with deprecation):

    * PersistenceState
    * QueryMetadata cache policies
    * DeleteRule

    > Convert non-type-safe enums to Java 5 enums
    > -------------------------------------------
    >
    > Key: CAY-922
    > URL: https://issues.apache.org/cayenne/browse/CAY-922
    > Project: Cayenne
    > Issue Type: Task
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Reporter: Kevin Menard
    > Assignee: Andrus Adamchik
    > Fix For: 3.0
    >
    >
    > There are a few of these in the codebase. The most prominent one that comes to mind is PersistenceState.
    > I had messed around with this before we actually converted to Java 5 and it's actually not all that bad. As long as end users used the public static fields for comparisons (instead of integers), things should generally work. Of course, it would affect method parameters and return types as well, but those are quite easily fixed and probably par for a pre-release software course.

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



    This archive was generated by hypermail 2.0.0 : Wed Nov 28 2007 - 04:53:10 EST