Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2544

Possible name clash of ivar and property name in generated class

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.M2, 4.2.M1
    • Fix Version/s: 4.1.B1, 4.2.M1
    • Component/s: cgen
    • Labels:
      None

      Description

      We generate same name for ivar and property if attribute name is all upper-case letters.
      Generated code looks like this:

      public static final Property<String> URL = Property.create("URL", String.class);
      
      protected String URL;
      

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: