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

The JSP compiler is not working well with overloaded methods in the tag class

    Details

      Description

      Is this a limitation of our compiler? Or it is a limitation of the JSP itself?

      This issue was found when testing LPS-96151, we are going to correct that issue removing the overloaded method, so the issue won't be reproducible, but the root cause won't be fixed. Anyway, I think reporting this issue is worth it in the case we found more cases in the future.

      The problematic taglib for this case was the ButtonTag, which has a method setStyle that is
      overloaded

      Reproduction steps:

      • go to journal-web
      • execute the gradle task generateJspJava
      • open build/jspc/org/apache/jsp/article/template_jsp.java
      • look for the line when setStyle is called

      Expected behavior:

      setStyle is called with the correct parameter "secondary"

      Actual behavior (some times, this is not deterministic)

      setStyle is called with the parameter new Boolean("false")

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              victor.galan Victor Galan
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 17 weeks, 5 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP1
                  7.2.X
                  Master