Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-8898

CDK could generate object names that conflict with Java keywords.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cdk
    • Labels:
      None

      Description

      CDK creates enum for attributes referenced in the property getters/setters. If attribute name coincides with Java keyword, generated Java class couldn't be compiled.
      Mojarra uses a little bit more complicated enum class for these cases, so CDK has to do the same:

      enum PropertyKeys {

      forValue("for"),
      showDetail,
      showSummary,
      redisplay;

      String toString;

      PropertyKeys(String toString)

      { this.toString = toString; }

      PropertyKeys() {
      }

      public String toString()

      { return ((this.toString != null) ? this.toString : super.toString()); }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                alexsmirnov Alexander Smirnov
                Reporter:
                alexsmirnov Alexander Smirnov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: