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

CA incorrectly inserts a long-named properties from resource bundles

XMLWordPrintable

      CA, when invoked after a '<bundle name>.' (whether automatically or manually) and applied, inserts a long-named property surrounded by square brackets right after existing '.'-character (must replace that character)

      Steps to reproduce:
      ==================

      EXECUTE: Create JSF/Seam or CDI project
      EXECUTE: Find/create a resource bundle and add a long-named property like 'org.jboss.long.named.Property'
      EXECUTE: Open some xhtml or jsp page and add an EL expression like '#{<bundle variable name>.'
      ASSERT: Content Assist window appeared automatically (If it didn't try to invoke CA manually by pressing Ctrl-Space when text cursor is placed right after '.' (dot)-char). There is a property named as '['org.jboss.long.named.Property']' within the proposals
      EXECUTE: Select '['org.jboss.long.named.Property']' property proposal and apply it.
      ASSERT: The text in editor is replaced by: '#

      {<bundle variable name>['org.jboss.long.named.Property']}

      ' ('.' (dot)-char has disappeared and property name surrounded by square brackets and quotes is added)

            vrubezhny Victor Rubezhny (Inactive)
            vrubezhny Victor Rubezhny (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: