2 Replies Latest reply on May 14, 2014 8:00 AM by Jesper Pedersen

    compile errors on 1.2 branch for adapters module.

    Jeremy Whiting Expert

      Hi,

      Getting this compile error on the 1.2 branch when attempting to run the testsuite.

       

      $ ant test

      ......

      compile-base:

          [mkdir] Created dir: /run/media/whitingjr/argo/ironjacamar/ironjacamar/build/adapters

          [mkdir] Created dir: /run/media/whitingjr/argo/ironjacamar/ironjacamar/build/adapters/impl

          [javac] Compiling 71 source files to /run/media/whitingjr/argo/ironjacamar/ironjacamar/build/adapters/impl

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/shrinkwrap-descriptors-api-base-2.0.0-alpha-5.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/shrinkwrap-descriptors-impl-base-2.0.0-alpha-5.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/shrinkwrap-descriptors-spi-2.0.0-alpha-5.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/shrinkwrap-descriptors-metadata-parser-2.0.0-alpha-5.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/maven-plugin-api-3.0.3.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/maven-model-3.0.3.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/plexus-utils-2.0.6.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/maven-artifact-3.0.3.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/sisu-inject-plexus-2.1.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/plexus-component-annotations-1.5.5.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/plexus-classworlds-2.4.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/sisu-inject-bean-2.1.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/sisu-guice-2.9.4-no_aop.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/saxon-8.7.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/saxon-dom-8.7.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/codemodel-2.4.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/dtd-parser-1.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/commons-lang3-3.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/commons-logging-1.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/log4j-1.2.12.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/logkit-1.0.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/avalon-framework-4.1.3.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/servlet-api-2.3.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/ant-1.8.4.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/ant-launcher-1.8.4.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/plexus-container-default-1.5.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/xbean-reflect-3.4.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/commons-logging-api-1.1.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/google-collect-snapshot-20080530.jar": no such file or directory

          [javac] warning: [path] bad path element "/run/media/whitingjr/argo/ironjacamar/ironjacamar/lib/tools/plexus-utils-2.0.1.jar": no such file or directory

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/BaseWrapperManagedConnection.java:136: warning: [static] static method should be qualified by type name, Class, instead of by an expression

          [javac]          connectionFactory = BaseWrapperManagedConnection.class.forName(JDBC41_FACTORY);

          [javac]                                                                ^

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/statistics/JdbcStatisticsPlugin.java:62: warning: [rawtypes] found raw type: Class

          [javac]    private Map<String, Class> types;

          [javac]                        ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/statistics/JdbcStatisticsPlugin.java:74: warning: [rawtypes] found raw type: Class

          [javac]       Map<String, Class> t = new HashMap<String, Class>();

          [javac]                   ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/statistics/JdbcStatisticsPlugin.java:74: warning: [rawtypes] found raw type: Class

          [javac]       Map<String, Class> t = new HashMap<String, Class>();

          [javac]                                                  ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/statistics/JdbcStatisticsPlugin.java:125: warning: [rawtypes] found raw type: Class

          [javac]    public Class getType(String name)

          [javac]           ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql/MySQLReauthPlugin.java:91: warning: [rawtypes] found raw type: Class

          [javac]          mysqlConnection.getMethod("changeUser", new Class[] {String.class, String.class});

          [javac]                                                      ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/extensions/mysql/MySQLReauthPlugin.java:111: warning: [rawtypes] found raw type: Class

          [javac]          Method changeUser = c.getClass().getMethod("changeUser", new Class[] {String.class, String.class});

          [javac]                                                                       ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/jdk6/CachedPreparedStatementJDK6.java:41: error: CachedPreparedStatementJDK6 is not abstract and does not override abstract method isCloseOnCompletion() in Statement

          [javac] public class CachedPreparedStatementJDK6 extends CachedPreparedStatement

          [javac]        ^

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/local/LocalManagedConnectionFactory.java:471: warning: [rawtypes] found raw type: Class

          [javac]          Method init = clz.getMethod("init", new Class[] {List.class});

          [javac]                                                  ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/util/LRUCache.java:55: warning: [rawtypes] found raw type: CacheListener

          [javac]    private CacheListener mListener;

          [javac]            ^

          [javac]   missing type arguments for generic class CacheListener<V>

          [javac]   where V is a type-variable:

          [javac]     V extends Object declared in interface CacheListener

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/util/LRUCache.java:176: warning: [rawtypes] found raw type: CacheListener

          [javac]    public void setListener(CacheListener listener)

          [javac]                            ^

          [javac]   missing type arguments for generic class CacheListener<V>

          [javac]   where V is a type-variable:

          [javac]     V extends Object declared in interface CacheListener

          [javac] /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/src/main/java/org/jboss/jca/adapters/jdbc/xa/XAManagedConnectionFactory.java:298: warning: [rawtypes] found raw type: Class

          [javac]          Method init = clz.getMethod("init", new Class[] {List.class});

          [javac]                                                  ^

          [javac]   missing type arguments for generic class Class<T>

          [javac]   where T is a type-variable:

          [javac]     T extends Object declared in class Class

          [javac] 1 error

          [javac] 41 warnings

       

      BUILD FAILED

      /run/media/whitingjr/argo/ironjacamar/ironjacamar/build.xml:343: The following error occurred while executing this line:

      /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/build.xml:79: The following error occurred while executing this line:

      /run/media/whitingjr/argo/ironjacamar/ironjacamar/adapters/build.xml:59: Compile failed; see the compiler error output for details.

       

      Total time: 24 seconds

       

      I created a PR to fix it.

       

      Regards,

      Jeremy