build - Java 8 upgrade issue -


we migrating java 8 when trying build project getting below error.

[error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile (default-compile) on project jaxws-tools: compilation failure: compilation failure: [error] /c:/users/tcatservice/.jenkins/jobs/std-core-jaxws-tools-dev-smart/workspace/src/main/java/com/rs/sw/tools/jaxws/client/view/clientframe.java:[520,57] incompatible types: java.lang.reflect.type cannot converted java.awt.window.type [error] /c:/users/tcatservice/.jenkins/jobs/std-core-jaxws-tools-dev-smart/workspace/src/main/java/com/rs/sw/tools/jaxws/client/view/clientframe.java:[527,60] incompatible types: java.awt.window.type cannot converted java.lang.class [error] -> [help 1]

code function mentioned below

private void addparameter(method currentmethod, gridbagconstraints c, final int index, class<?> parametertype) {   string name = "arg" + index;   annotation[] annotations = currentmethod.getparameterannotations()[index];     (annotation annotation : annotations) {         if (annotation instanceof webparam) {             name = ((webparam) annotation).name();             break;         }     }     c.gridx = 0;     c.gridy = index;     c.weightx = 0.0;     string generics = "";     if (parametertype.gettypeparameters().length > 0) {         stringbuilder genericsbuilder = new stringbuilder();         (typevariable<?> parameter : parametertype.gettypeparameters()){             if (genericsbuilder.length() > 0) {                 genericsbuilder.append(", ");             }             genericsbuilder.append(parameter.getname());             if (parameter.getbounds().length > 0) {                 genericsbuilder.append(" extends ");                 boolean first = true;                 (type type : parameter.getbounds()) {                     if (first) {                         first = false;                     }                     else {                         genericsbuilder.append(" & ");                     }                     genericsbuilder.append(((class<?>) type).getsimplename());-----this line error occurring                  }             }         }         generics = "<" + genericsbuilder.tostring() + ">";     }     jlabel parameterlabel = new jlabel("<html>" + name             + "<br/><span style='color:#808080;font-size: 8px'>&nbsp;&nbsp;&nbsp;&nbsp;"             + parametertype.getsimplename() + generics + "</span></html>");     this.requestpanelcontent.add(parameterlabel, c);      c.gridx = 1;     c.weightx = 1.0;     final component field = createfield(parametertype, index);     this.requestpanelcontent.add(field, c);      jcheckbox nullcheckbox = null;     if (!parametertype.isprimitive()) {         nullcheckbox = addnullcheckbox(c, index, field);     }     object[] previousarguments = this.methodarguments.get(this.currentmethod);     if (previousarguments != null) {         object previousvalue = previousarguments[index];         this.currentarguments[index] = previousvalue;         if (previousvalue != null) {             ((editor<?>) field).seteditorvalue(previousvalue);         }         else if (nullcheckbox != null) {             nullcheckbox.setselected(true);         }     } } 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -