Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2122

Javax imports in servlet tests

    XMLWordPrintable

Details

    Description

      There are imports in master to javax instead of jakarta. They trigger error in compilation for the test packages:

      [INFO] --- maven-compiler-plugin:3.8.0-jboss-2:testCompile (default-testCompile) @ undertow-servlet ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 251 source files to /home/rmartinc/undertow/servlet/target/test-classes
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[22,20] error: package javax.servlet does not exist
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[23,25] error: package javax.servlet.http does not exist
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[24,25] error: package javax.servlet.http does not exist
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[25,25] error: package javax.servlet.http does not exist
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[34,45] error: cannot find symbol
        symbol: class HttpServlet
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[36,25] error: cannot find symbol
        symbol:   class HttpServletRequest
        location: class RelativeRedirectServlet
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[36,49] error: cannot find symbol
        symbol:   class HttpServletResponse
        location: class RelativeRedirectServlet
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServlet.java:[36,82] error: cannot find symbol
        symbol:   class ServletException
        location: class RelativeRedirectServlet
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServletTestCase.java:[22,20] error: package javax.servlet does not exist
      [ERROR] /home/rmartinc/undertow/servlet/src/test/java/io/undertow/servlet/test/redirect/RelativeRedirectServletTestCase.java:[50,38] error: cannot find symbol
        symbol:   class ServletException
        location: class RelativeRedirectServletTestCase
      

      This was triggered by this commit.

      Attachments

        Activity

          People

            rhn-support-rmartinc Ricardo Martin Camarero
            rhn-support-rmartinc Ricardo Martin Camarero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: