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

Possible name clash of ivar and property name in generated class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.M2, 4.2.M1
    • 4.1.B1, 4.2.M1
    • cgen
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: