Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17686

Javascript errors related to NotificationsFiltersPreferencesMacro [unreachable Code]

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Solved By
    • Affects Version/s: 12.7-rc-1
    • Fix Version/s: None
    • Component/s: Notifications
    • Labels:
      None
    • Environment:
      18.04.5 LTS
      DEB-Installation
      Tomcat8
      Java - 1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      After updating to 12.7-RC1 I have the following Warning in the catalina.out logs:

       

      25-Aug-2020 08:16:10.315 WARNUNG [ajp-nio-127.0.0.1-8009-exec-10 - http://wiki.johanneswerk.de/bin/jsx/XWiki/Notifications/Code/NotificationsFiltersPreferencesMacro?language=de&docVersion=4.1] com.google.javascript.jscomp.LoggerErrorManager.println xwiki:XWiki.Notifications.Code.NotificationsFiltersPreferencesMacro:85: WARNING - [JSC_UNREACHABLE_CODE] unreachable code
      {{ 85| for (var i = 0; i < nodes.length; ++i) {}}
      {{ ^^^}}

      25-Aug-2020 08:16:10.315 WARNUNG [ajp-nio-127.0.0.1-8009-exec-10 - http://wiki.johanneswerk.de/bin/jsx/XWiki/Notifications/Code/NotificationsFiltersPreferencesMacro?language=de&docVersion=4.1] com.google.javascript.jscomp.LoggerErrorManager.printSummary 0 error(s), 1 warning(s)
      2020-08-25 08:16:10,316 [ajp-nio-127.0.0.1-8009-exec-10 - http://wiki.johanneswerk.de/bin/jsx/XWiki/Notifications/Code/NotificationsFiltersPreferencesMacro?language=de&docVersion=4.1] WARN c.x.x.w.s.JsExtension - Warning at line [85], column [40]: [unreachable code]

       

      I checked the version of XWiki/Notifications/Code/NotificationsFiltersPreferencesMacro and set it to the one from 12.7-rc1, as it was on 12.4-rc1.

       

      The warning persists.

      If you need more information, let me know.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surli Simon Urli
                Reporter:
                jwielsch Johannes Wielsch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: