Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19624

Remove Java5 syntax from our JSPs

XMLWordPrintable

      WebSphere (in particular) defaults to using 1.3 syntax when compiling JSPs. Any Java5 syntax support (such as generified collections or return types) fails to compile, giving errors such as:

      /home/was/IBM/WebSphere/AppServer/profiles/AppSrv04/temp/centos5wasNode04/server1/atlassian-jira-4_0_1-SNAPSHOT_war/atlassian-jira-4.0.1-SNAPSHOT.war/decorators/_admin.java : 368 : 
          Type mismatch: cannot convert from Object to ReindexMessageManager
      

      To fully assess the damage we need to install JIRA with Precompile JSPs switched on (an install option only).

      The workaround is to set the JDK version to 15 in the JSP Compiler settings while installing (for example see this link) or to add something like:

        <jspAttributes xmi:id="JSPAttribute_1257295496424" name="jdkSourceLevel" value="15"/>
      

      In the WEB-INF/ibm-web-ext.xmi. Note you need to be careful with the xmi:id to make sure it is unique.

              vbharara Veenu Bharara (Inactive)
              jed Jed Wesley-Smith (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: