Cannot compile under jdk5.
--------------------------

                 Key: MOJO-981
                 URL: http://jira.codehaus.org/browse/MOJO-981
             Project: Mojo
          Issue Type: Bug
          Components: javascript-tools
         Environment: java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
            Reporter: Xuhuisheng


When I compile the current version of the javascript-maven-plugin, it said:

javascript-maven-tools\javascript-maven-plugin\src\main\java\org\codehaus\mojo\javascript\JsUnitMojo.java:[239,20]
 找不到符号
符号: 方法 isEmpty()
位置: 类 java.lang.String

There is no method named isEmpty() in java.lang.String under jdk5.

Could I check the length of String by following codes?

        if ( basedir..trim().length() == 0 )
        {
            basedir = ".";
        }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to