Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17627

Special characters like > are not processed correctly in the Forge console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 4.2.0.Beta3
    • 4.2.0.Beta2
    • forge
    • None
    • Hide

      Add a BV constraint on a field in a JPA entity from the Forge console in JBDS, like:

      constraint-add --onProperty name --constraint Size --min 5 --max 50 --message "Must be > 5 and < 50"

      Show
      Add a BV constraint on a field in a JPA entity from the Forge console in JBDS, like: constraint-add --onProperty name --constraint Size --min 5 --max 50 --message "Must be > 5 and < 50"

      When I run a Forge command in console where some special characters are present in the input, the input following the special characters are omitted during processing.

      For example:

      [Event.java]$ constraint-add --onProperty name --constraint Size --min 5 --max 50 --message "Must be > 5 and < 50"
      aesh: can't redirect to more than one file.
      

      which results in the following bit of code being generated:

      	@Column
      	@Size(min = 5, max = 50, message = "Must be ")
      	private String name;
      

      Note the characters following '>' have been omitted in the generated annotation attribute value.

      This is not a problem with the Eclipse GUI, so I guess this is an Aesh+Forge issue involving escaping of such characters.

            kaers@redhat.com Koen Aers
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: