Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-76224

JspAnalyzerPlugin adds package imports for jsp page imports even if they are commented out

Details

    • 7.0.x
    • Committed

    Description

      if you have the following imports in your jsp

      <%@ page import="java.io.*" %>
      <%--<%@ page import="javax.portlet.,javax.portlet.filter." %>
      <%@ page import="javax.servlet.http.,javax.servlet." %>--%>
      <%@ page import="static javax.portlet.tck.constants.Constants.*" %>
      <%-<%@ page import="static javax.portlet.tck.beans.JSR286DispatcherTestCaseDetails.*" %>-%>
      <%@ page import="java.util.*" %>

      Even though half of these are commented it, the JspAnalyzerPlugin will still generate Import-Package for the commented out sections.

      Attachments

        Activity

          People

            michael.saechang Michael Saechang
            gregory.amerson Gregory Amerson
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 2 weeks ago

              Packages

                Version Package
                7.0.0 DXP FP33
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master