Compiler: Eclipse Java Compiler Version: 0.868, 3.4.0 release candidate-2
Number of source files: 14 Number of classfiles: 14
Problems: 28 (Errors: 0 Warnings: 28 )
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 :
181 : 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 :
182 : 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 :
212 : 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 :
213 : generateMethod.invoke(CodeGenerationEngineInstance, null);
Discouraged access: The type JavaProject is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-R/eclipse/plugins/org.eclipse.jdt.core_3.4.0.v_872.jar
Axis2ClientTestCaseIntegrateCommand.java :
35 : 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-R/eclipse/plugins/org.eclipse.jdt.core_3.4.0.v_872.jar
Axis2ClientTestCaseIntegrateCommand.java :
76 : 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-R/eclipse/plugins/org.eclipse.jdt.core_3.4.0.v_872.jar
Axis2ClientTestCaseIntegrateCommand.java :
76 : 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 :
63 : 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 :
64 : Object resultLocalPart = GetLocalPartMethod.invoke(serviceQnameInstance, null);
The import java.io.IOException is never used
WSDL2JavaGenerator.java :
20 : 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 :
376 : 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 :
379 : 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 :
59 : 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 :
60 : 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 :
63 : 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 :
64 : 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 :
80 : 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 :
81 : 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 :
103 : 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 :
104 : 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 :
138 : 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 :
139 : 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 :
146 : 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 :
148 : 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 :
194 : 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 :
195 : 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 :
202 : 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 :
203 : returnList.add(getNameMethod.invoke(portInstance,null));