Compiler: Eclipse Java Compiler Version: 0.868, 3.4.0 release candidate-2
Number of source files: 15 Number of classfiles: 15
Problems: 29 (Errors: 0 Warnings: 29 )
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
Axis2ClientCodegenCommand.java :
186 : Method getTargetNamespaceMethod = AxisServiceClass.getMethod("getTargetNamespace", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
Axis2ClientCodegenCommand.java :
187 : Object targetNamespace = getTargetNamespaceMethod.invoke(axisServiceInstance, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
Axis2ClientCodegenCommand.java :
217 : Method generateMethod = CodeGenerationEngineClass.getMethod("generate", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
Axis2ClientCodegenCommand.java :
218 : generateMethod.invoke(CodeGenerationEngineInstance, null);
The import org.eclipse.jst.ws.axis2.core.constant.Axis2Constants is never used
Axis2ClientDefaultingCommand.java :
30 : import org.eclipse.jst.ws.axis2.core.constant.Axis2Constants;
Discouraged access: The type JavaProject is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.jdt.core_3.4.4.v_894_R34x.jar
Axis2ClientTestCaseIntegrateCommand.java :
36 : import org.eclipse.jdt.internal.core.JavaProject;
Discouraged access: The constructor JavaProject(IProject, JavaElement) is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.jdt.core_3.4.4.v_894_R34x.jar
Axis2ClientTestCaseIntegrateCommand.java :
77 : IJavaProject javaProj = new JavaProject(project,null);
Discouraged access: The type JavaProject is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.jdt.core_3.4.4.v_894_R34x.jar
Axis2ClientTestCaseIntegrateCommand.java :
77 : IJavaProject javaProj = new JavaProject(project,null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
DefaultCodegenUtil.java :
64 : Method GetLocalPartMethod = QNameClass.getMethod("getLocalPart", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
DefaultCodegenUtil.java :
65 : Object resultLocalPart = GetLocalPartMethod.invoke(serviceQnameInstance, null);
The import java.io.IOException is never used
WSDL2JavaGenerator.java :
21 : import java.io.IOException;
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDL2JavaGenerator.java :
388 : Method populateServiceMethod = WSDL11ToAxisServiceBuilderClass.getMethod( "populateService", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDL2JavaGenerator.java :
391 : return populateServiceMethod.invoke(WSDL11ToAxisServiceBuilderInstance, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
67 : Method newInstanceMethod = WSDLFactoryClass.getMethod("newInstance", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
68 : Object WSDLFactoryObject = newInstanceMethod.invoke(null, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
71 : Method newWSDLReaderMethod = WSDLFactoryImplClass.getMethod("newWSDLReader", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
72 : Object WSDLReaderObject = newWSDLReaderMethod.invoke(WSDLFactoryObject, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
91 : Method getNamespacesMethod = DefinitionClass.getMethod("getNamespaces", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
92 : map = (Map)getNamespacesMethod.invoke(DefinitionInstance, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
114 : Method getTargetNamespaceMethod = DefinitionClass.getMethod("getTargetNamespace", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
115 : String packageName = (String)getTargetNamespaceMethod.invoke(DefinitionInstance, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
149 : Method getServicesMethod = DefinitionClass.getMethod("getServices", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
150 : Map serviceMap = (Map)getServicesMethod.invoke(DefinitionInstance, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
157 : Method getQNameMethod = ServiceClass.getMethod("getQName", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
159 : returnList.add(getQNameMethod.invoke(serviceInstance, null));
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
205 : Method getPortsMethod = ServiceClass.getMethod("getPorts", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
206 : Map portMap = (Map)getPortsMethod.invoke(serviceInstance, null);
The argument of type null should explicitly be cast to Class[] for the invocation of the varargs method getMethod(String, Class...) from type Class. It could alternatively be cast to Class for a varargs invocation
WSDLPropertyReader.java :
213 : Method getNameMethod = PortClass.getMethod("getName", null);
The argument of type null should explicitly be cast to Object[] for the invocation of the varargs method invoke(Object, Object...) from type Method. It could alternatively be cast to Object for a varargs invocation
WSDLPropertyReader.java :
214 : returnList.add(getNameMethod.invoke(portInstance,null));