Project

General

Profile

Actions

Architecture #22764

closed

Architecture #22723: Backport scala 2.13 change for scala 3.0 migration

Correct warning due to nowarn or release in 7.2 branch

Added by François ARMAND 12 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Effort required:
Name check:
To do
Fix check:
Checked
Regression:
No

Description

Things like:

[WARNING] warning: -target is deprecated: Use -release instead to compile against the correct platform API.

This one is due to having target deprecated by JDK 17 in favor of release. Both are supported by jdk 11, so we can use release even in 7.2

Or

[WARNING] warning: -target is deprecated: Use -release instead to compile against the correct platform API.
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/services/marshalling/XmlUnserialisationImpl.scala:280: warning: class StringEscapeUtils in package lang3 is deprecated
[WARNING]                                 StringEscapeUtils.unescapeXml((p \\ "value").text.trim),
[WARNING]                                 ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/batch/AutomaticReportsCleaner.scala:425: warning: @nowarn annotation does not suppress any warnings
[ERROR]                  .forkDaemon: @nowarn("msg=a type was inferred to be `\\w+`; this may indicate a programming error.")
[INFO]                                ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/batch/CheckInventoryUpdate.scala:102: warning: @nowarn annotation does not suppress any warnings
[WARNING]   ): @nowarn(
[INFO]       ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/batch/PurgeUnreferencedSoftwares.scala:69: warning: @nowarn annotation does not suppress any warnings
[WARNING]     ): @nowarn(
[INFO]         ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/inventory/InventoryProcessor.scala:190: warning: @nowarn annotation does not suppress any warnings
[WARNING]     @nowarn("msg=a type was inferred to be `Any`")
[INFO]      ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/repository/xml/ItemArchiveManagerImpl.scala:105: warning: @nowarn annotation does not suppress any warnings
[WARNING]   @nowarn("msg=a type was inferred to be `Any`")
[INFO]    ^
[WARNING] /home/fanf/java/workspaces/rudder-project/rudder/webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/services/healthcheck/HealthcheckNotificationService.scala:77: warning: @nowarn annotation does not suppress any warnings
[WARNING]     .runNow: @nowarn("msg=a type was inferred to be `Any`")

Actions #1

Updated by François ARMAND 12 months ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #2

Updated by François ARMAND 12 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/4797
Actions #3

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.2.7 to 7.2.8
Actions #4

Updated by François ARMAND 11 months ago

  • Description updated (diff)
Actions #5

Updated by Anonymous 11 months ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Anonymous 11 months ago

Actions #7

Updated by Vincent MEMBRÉ 10 months ago

  • Fix check changed from To do to Checked
Actions #8

Updated by Vincent MEMBRÉ 10 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.8 and 7.3.3 which were released today.

Actions

Also available in: Atom PDF