Letractively / aost

Automatically exported from code.google.com/p/aost
Other
1 stars 0 forks source link

Groovy java.util.List causes compilation problem #151

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Core build was broken and we saw the error as follows,

startup failed, Compile error during compilation with javac.
/mnt/disk/work/workspace/test/core/src/test/groovy/example/test/java/
DogselfDemosPageJavaTestCase.java:21: cannot access
org.tellurium.dsl.BaseDslContext
bad class file: /mnt/disk/work/workspace/test/core/target/classes/org/
tellurium/dsl/BaseDslContext.class
undeclared type variable: E
Please remove or make sure it appears in the correct subdirectory of
the classpath.
        d = new DogselfDemosPage();
            ^
1 error 

Original issue reported on code.google.com by John.Jian.Fang@gmail.com on 26 Mar 2009 at 4:53

GoogleCodeExporter commented 8 years ago
Seems to be a Groovy
bug. In the following
method,

  def ArrayList getSelectorProperties(String jqSelector,
java.util.List<String> props) {
    JSONArray arr = new JSONArray();
    arr.addAll(props);
    String json = arr.toString();
    String out = extension.getSelectorProperties(jqSelector, json);
    return (ArrayList) parseSeleniumJSONReturnValue(out);
  }

I need to add

import java.util.List

and then change the method signature to

def ArrayList getSelectorProperties(String jqSelector, List<String>
props) {
......

}

After that, everything starts working again.

I have been really frustrated by this for couple days, but glad it
solved now.

Now the new methods are added back again. 

Original comment by John.Jian.Fang@gmail.com on 26 Mar 2009 at 4:53