[jbosstools-issues] [JBoss JIRA] (JBIDE-15334) Use Java5 method to check if String is empty
Xavier Coulon (JIRA)
jira-events at lists.jboss.org
Fri Sep 13 02:57:03 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-15334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Coulon updated JBIDE-15334:
----------------------------------
Description:
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.
was:
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 because String#isEmpty() was defined in Java6
> Use Java5 method to check if String is empty
> --------------------------------------------
>
> Key: JBIDE-15334
> URL: https://issues.jboss.org/browse/JBIDE-15334
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: archives
> Reporter: Xavier Coulon
> Assignee: Rob Stryker
> Fix For: 4.1.1.Alpha1, 4.2.0.Alpha1
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list