Actions
Bug #7365
closedBug #7356: Correct a warning in rudder compilation
There is scala compilation warning in Rudder 3.0
Status:
Released
Priority:
2
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
There is some warning in compiling Rudder 3.0 :
These one, we can't do much, and they are here because of Guava:
[WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.CheckReturnValue not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub. [WARNING] warning: Class javax.annotation.Nullable not found - continuing with a stub.
This one, we can't do anything (I was the one reporting the problem):
[WARNING] warning: While parsing annotations in /home/fanf/.m2/repository/com/unboundid/unboundid-ldapsdk/2.3.6/unboundid-ldapsdk-2.3.6.jar(com/unboundid/util/ThreadSafetyLevel.class ), could not find COMPLETELY_THREADSAFE in enum object ThreadSafetyLevel. [INFO] This is likely due to an implementation restriction: an annotation argument cannot refer to a member of the annotated class (SI-7014).
These one, we should be able to remove:
[WARNING] warning: there were 1 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 2 unchecked warning(s); re-run with -unchecked for details [WARNING] warning: there were 5 feature warning(s); re-run with -feature for details [WARNING] warning: there were 2 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 20 deprecation warning(s); re-run with -deprecation for details [WARNING] warning: there were 12 feature warning(s); re-run with -feature for details
This one is "ok", but it may change in the future: remove it.
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/rudder-core/src/main/scala/com/normation/rudder/repository/jdbc/ExpectedReportsJdbcRepository.scala:964: warning: match may not be exhaustive. [WARNING] It would fail on the following input: List(_) [WARNING] case t => t.sliding(2).map { [WARNING] ^
This one is clearly a problem:
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/rudder-web/src/main/scala/com/normation/rudder/web/snippet/administration/PropertiesManagement.scala:512: warning: a pure e xpression does nothing in statement position; you may be omitting necessary parentheses [WARNING] "ok" [WARNING] ^
Updated by François ARMAND about 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/950
Updated by François ARMAND about 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder|3c5bacaecc3d78c5d4f86750ec01314f10aa3c14.
Updated by Nicolas CHARLES about 9 years ago
Applied in changeset rudder|243ff44034fd7ee0c5ab04861f477a5a73a711b6.
Updated by Vincent MEMBRÉ almost 9 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.0.12 and 3.1.5 which were released today.
- 3.0: Announce Changelog
- 3.1: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Actions