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

    • Branch Version/s:
      7.0.x
    • Backported to Branch:
      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

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 35 weeks, 6 days 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