Compiler Report

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 )

Source File: org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java
1. WARNING: MethodVarargsArgumentNeedCast

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);

2. WARNING: MethodVarargsArgumentNeedCast

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);

3. WARNING: MethodVarargsArgumentNeedCast

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);

4. WARNING: MethodVarargsArgumentNeedCast

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);

Source File: org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientDefaultingCommand.java
1. WARNING: UnusedImport

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;

Source File: org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientTestCaseIntegrateCommand.java
1. WARNING: DiscouragedReference

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.4.v_894_R34x.jar

Axis2ClientTestCaseIntegrateCommand.java :

36 : import org.eclipse.jdt.internal.core.JavaProject;

2. WARNING: DiscouragedReference

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.4.v_894_R34x.jar

Axis2ClientTestCaseIntegrateCommand.java :

77 : IJavaProject javaProj = new JavaProject(project,null);

3. WARNING: DiscouragedReference

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.4.v_894_R34x.jar

Axis2ClientTestCaseIntegrateCommand.java :

77 : IJavaProject javaProj = new JavaProject(project,null);

Source File: org/eclipse/jst/ws/axis2/consumption/core/utils/DefaultCodegenUtil.java
1. WARNING: MethodVarargsArgumentNeedCast

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);

2. WARNING: MethodVarargsArgumentNeedCast

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);

Source File: org/eclipse/jst/ws/axis2/consumption/core/utils/WSDL2JavaGenerator.java
1. WARNING: UnusedImport

The import java.io.IOException is never used

WSDL2JavaGenerator.java :

21 : import java.io.IOException;

2. WARNING: MethodVarargsArgumentNeedCast

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);

3. WARNING: MethodVarargsArgumentNeedCast

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);

Source File: org/eclipse/jst/ws/axis2/consumption/core/utils/WSDLPropertyReader.java
1. WARNING: MethodVarargsArgumentNeedCast

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);

2. WARNING: MethodVarargsArgumentNeedCast

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);

3. WARNING: MethodVarargsArgumentNeedCast

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);

4. WARNING: MethodVarargsArgumentNeedCast

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);

5. WARNING: MethodVarargsArgumentNeedCast

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);

6. WARNING: MethodVarargsArgumentNeedCast

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);

7. WARNING: MethodVarargsArgumentNeedCast

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);

8. WARNING: MethodVarargsArgumentNeedCast

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);

9. WARNING: MethodVarargsArgumentNeedCast

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);

10. WARNING: MethodVarargsArgumentNeedCast

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);

11. WARNING: MethodVarargsArgumentNeedCast

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);

12. WARNING: MethodVarargsArgumentNeedCast

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));

13. WARNING: MethodVarargsArgumentNeedCast

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);

14. WARNING: MethodVarargsArgumentNeedCast

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);

15. WARNING: MethodVarargsArgumentNeedCast

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);

16. WARNING: MethodVarargsArgumentNeedCast

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));