Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28566

Fix Java17 mockito errors

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 4.28.0.AM1
    • 4.24.0.Final
    • livereload
    • None
    • Livereload is deprecated and removed from JBossTools.
    • ---

    Description

      livereload unit test fails only in java17 with :

      Check failure on line 30 in LiveReloadScriptInjectionMiddleManServletTestCase 
      
      @github-actionsgithub-actions
      / Test Report
      LiveReloadScriptInjectionMiddleManServletTestCase.shouldFilterLocation
      Mockito cannot mock this class: interface javax.servlet.http.HttpServletRequest.
      
      Mockito can only mock non-private & non-final classes.
      If you're not sure why you're getting this error, please report to the mailing list.
      
      
      Java               : 17
      JVM vendor name    : Azul Systems, Inc.
      JVM vendor version : 17.0.3+7-LTS
      JVM name           : OpenJDK 64-Bit Server VM
      JVM version        : 17.0.3+7-LTS
      JVM info           : mixed mode, sharing
      OS name            : Linux
      OS version         : 5.13.0-1031-azure
      
      
      Underlying exception : java.lang.IllegalStateException: Error invoking java.lang.invoke.MethodHandles$Lookup#defineClass
      

      Attachments

        Activity

          People

            stephane.bouchet Stephane Bouchet
            stephane.bouchet Stephane Bouchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: