harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-4651) [jdktools][build] 26 Java compilation warnings
Date Mon, 24 Mar 2008 05:45:25 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Varlamov closed HARMONY-4651.
------------------------------------

    Resolution: Fixed

Seems to be fixed

> [jdktools][build] 26 Java compilation warnings
> ----------------------------------------------
>
>                 Key: HARMONY-4651
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4651
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>            Reporter: Alexey Varlamov
>            Priority: Minor
>
> There is a bunch of compilation warnings spilled by ecj:
>      [java] compile-java:
>      [java]      [echo] Compiling TOOLS classes
>      [java]     [javac] Compiling 44 source files to C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\build\classes
>      [java]     [javac] Since fork is false, ignoring memoryMaximumSize setting
>      [java]     [javac] ----------
>      [java]     [javac] 1. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\ClassProvider.java
>      [java]     [javac]  (at line 134)
>      [java]     [javac] 	cache.put(name, result);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method put(Object, Object) belongs to the raw
type Map. References to generic type Map should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] ----------
>      [java]     [javac] 2. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\internal\jdi\Bootstrap.java
>      [java]     [javac]  (at line 92)
>      [java]     [javac] 	urls.add(url);
>      [java]     [javac] 	^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type ArrayList.
References to generic type ArrayList should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 3. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\internal\jdi\Bootstrap.java
>      [java]     [javac]  (at line 100)
>      [java]     [javac] 	ClassLoader loader = new URLClassLoader((URL[])(urls.toArray(buf)));
>      [java]     [javac] 	                                               ^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method toArray(Object[]) belongs to the raw
type ArrayList. References to generic type ArrayList should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 4. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\internal\jdi\Bootstrap.java
>      [java]     [javac]  (at line 104)
>      [java]     [javac] 	java.lang.reflect.Method method = cls.getMethod("virtualMachineManager",
null);
>      [java]     [javac] 	                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] 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
>      [java]     [javac] ----------
>      [java]     [javac] 5. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\internal\jdi\Bootstrap.java
>      [java]     [javac]  (at line 105)
>      [java]     [javac] 	vmm = (VirtualMachineManager)method.invoke(null, null);
>      [java]     [javac] 	                             ^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] 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
>      [java]     [javac] ----------
>      [java]     [javac] ----------
>      [java]     [javac] 6. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Clazz.java
>      [java]     [javac]  (at line 100)
>      [java]     [javac] 	foundInners.addElement(innerClassName);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method addElement(Object) belongs to the raw
type Vector. References to generic type Vector should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 7. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Clazz.java
>      [java]     [javac]  (at line 108)
>      [java]     [javac] 	foundInners.toArray(innerClassNames);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method toArray(Object[]) belongs to the raw
type Vector. References to generic type Vector should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 8. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Clazz.java
>      [java]     [javac]  (at line 167)
>      [java]     [javac] 	fields.addElement(new ClazzField(this, f));
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method addElement(Object) belongs to the raw
type Vector. References to generic type Vector should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 9. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Clazz.java
>      [java]     [javac]  (at line 193)
>      [java]     [javac] 	methods.addElement(new ClazzMethod(this, m, overloaded));
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method addElement(Object) belongs to the raw
type Vector. References to generic type Vector should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] ----------
>      [java]     [javac] 10. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 92)
>      [java]     [javac] 	options.put(args[i], path);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method put(Object, Object) belongs to the raw
type Map. References to generic type Map should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 11. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 95)
>      [java]     [javac] 	options.put(args[i], new File(args[i + 1]));
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method put(Object, Object) belongs to the raw
type Map. References to generic type Map should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 12. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 98)
>      [java]     [javac] 	options.put(args[i], Boolean.valueOf(true));
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method put(Object, Object) belongs to the raw
type Map. References to generic type Map should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 13. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 100)
>      [java]     [javac] 	names.add(args[i]);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Set.
References to generic type Set should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 14. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 189)
>      [java]     [javac] 	innerNames.add(innerClassNames[i]);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Set.
References to generic type Set should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 15. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 221)
>      [java]     [javac] 	innerNames.removeAll(classNames);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method removeAll(Collection) belongs to the
raw type Set. References to generic type Set should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 16. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\javah\Main.java
>      [java]     [javac]  (at line 224)
>      [java]     [javac] 	classNames = new HashSet(innerNames);
>      [java]     [javac] 	             ^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The constructor HashSet(Collection) belongs to the
raw type HashSet. References to generic type HashSet should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] ----------
>      [java]     [javac] 17. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 107)
>      [java]     [javac] 	Collection certs = CertReader.readCerts(param
>      [java]     [javac]                 .getFileName(), false, certProvider);
>      [java]     [javac] 	                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The expression of type Collection needs unchecked
conversion to conform to Collection
>      [java]     [javac] ----------
>      [java]     [javac] 18. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 358)
>      [java]     [javac] 	builderParam = new PKIXBuilderParameters(selfSignedTAs, selector);
>      [java]     [javac] 	                                         ^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The expression of type Set needs unchecked conversion
to conform to Set
>      [java]     [javac] ----------
>      [java]     [javac] 19. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 477)
>      [java]     [javac] 	selfSignedTAs.add(ta);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Set.
References to generic type Set should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 20. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 478)
>      [java]     [javac] 	selfSignedTAsCerts.add(trCert);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Collection.
References to generic type Collection should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 21. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 481)
>      [java]     [javac] 	trustedCerts.add(trCert);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Collection.
References to generic type Collection should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 22. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 543)
>      [java]     [javac] 	selfSignedTAs.add(ta);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Set.
References to generic type Set should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 23. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 544)
>      [java]     [javac] 	selfSignedTAsCerts.add(trCert);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Collection.
References to generic type Collection should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] 24. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertChainVerifier.java
>      [java]     [javac]  (at line 547)
>      [java]     [javac] 	trustedCerts.add(trCert);
>      [java]     [javac] 	^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The method add(Object) belongs to the raw type Collection.
References to generic type Collection should be parameterized
>      [java]     [javac] ----------
>      [java]     [javac] ----------
>      [java]     [javac] 25. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertImporter.java
>      [java]     [javac]  (at line 80)
>      [java]     [javac] 	Collection certCollection = CertReader.readCerts(
>      [java]     [javac]                     param.getFileName(), false, certProvider);
>      [java]     [javac] 	                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The expression of type Collection needs unchecked
conversion to conform to Collection
>      [java]     [javac] ----------
>      [java]     [javac] 26. WARNING in C:\cc\cc-spec\build\checkouts\make-snapshot\working_jdktools\modules\tools\src\main\java\org\apache\harmony\tools\keytool\CertImporter.java
>      [java]     [javac]  (at line 86)
>      [java]     [javac] 	Collection trustedCert = CertReader.readCerts(
>      [java]     [javac]                     param.getFileName(), true, certProvider);
>      [java]     [javac] 	                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>      [java]     [javac] Type safety: The expression of type Collection needs unchecked
conversion to conform to Collection
>      [java]     [javac] ----------
>      [java]     [javac] 26 problems (26 warnings)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message