Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1903

Stale values are displayed in the property dropdown for the "Constraint: Add" command in Forge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0.Final
    • 2.6.0.Final
    • Java EE, UI - Eclipse
    • None
    • Hide

      1. Create a new Java EE Webapp project using the wizard in JBDS Central.
      2. Create a new JPA entity using the "JPA: New Entity" command.
      3. Create a new field using the "JPA: New Field" command.
      4. Select the project in the project navigator. This ensures that the current class is not selected and available within the Forge execution context.
      4. Launch the "Constraint: Add" command. Change the class from the existing "Resources" class to the newly created class in the above step. Hit Next. The list of properties displays "em" instead of properties in the selected class. "em" seems to be a property in the Resources class, which happens to be the initial class during my test run.

      Show
      1. Create a new Java EE Webapp project using the wizard in JBDS Central. 2. Create a new JPA entity using the "JPA: New Entity" command. 3. Create a new field using the "JPA: New Field" command. 4. Select the project in the project navigator. This ensures that the current class is not selected and available within the Forge execution context. 4. Launch the "Constraint: Add" command. Change the class from the existing "Resources" class to the newly created class in the above step. Hit Next. The list of properties displays "em" instead of properties in the selected class. "em" seems to be a property in the Resources class, which happens to be the initial class during my test run.
    • Workaround Exists
    • Hide

      Select the class on which the constraint is to be added, before executing the "Constraint: Add" command.

      Show
      Select the class on which the constraint is to be added, before executing the "Constraint: Add" command.

      Stale values are displayed in the "Constraint: Add" wizard if the selected class is modified to a different one in the first step.
      The properties of the original class are displayed when choosing the property and the constraint to add to that property in the next step.

              rhn-support-ggastald George Gastaldi
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: