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

CLONE - Use Java5 method to check if String is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Alpha1
    • None
    • archives
    • None

      When importing some Archive projects in a workspace where a Java5 JRE exists, there is a compilation error because of the use of String#isEmpty() which is defined in Java6+

      Steps to reproduce:
      Import the Archives projects in a workspace where a JRE5 exists
      Assert: no compilation error
      Fail: compilation errors in archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/interna/xb/XMLBinding.java
      because String#isEmpty() was defined in Java6

      The problem does not appear if the workspace is configured with a Java6 (or more) JRE.

            rob.stryker Rob Stryker (Inactive)
            jniederm Jakub Niedermertl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: