Bug 842620 - tomcat - compile with -target 1.5 or greater
Summary: tomcat - compile with -target 1.5 or greater
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tomcat
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ivan Afonichev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 842394
TreeView+ depends on / blocked
 
Reported: 2012-07-24 09:26 UTC by Mikolaj Izdebski
Modified: 2012-12-20 15:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:44:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikolaj Izdebski 2012-07-24 09:26:55 UTC
Package tomcat appears to be using Java generics,
but generates class files in format older than 49.0,
which corresponds to J2SE 5.0, in which generics were introduced.

Please update this package to generate classes in format 49.0 or
above. This corresponds to -target 1.5 option of javac (or ecj).

For more information, see bug #842394

Comment 1 Ivan Afonichev 2012-08-24 21:08:30 UTC
It seems tomcat package already build in 50 format.
also build.xml:


  <!-- Servlet 3.0 spec requires 1.6+ -->
  <property name="compile.source" value="1.6"/>
  <property name="compile.target" value="1.6"/>

Comment 2 Mikolaj Izdebski 2012-08-27 08:48:36 UTC
These 2 jars have classes in format 48.0:
  /var/lib/tomcat/webapps/examples/WEB-INF/lib/jstl.jar
  /var/lib/tomcat/webapps/examples/WEB-INF/lib/standard.jar
These are part of tomcat-webapps binary RPM build from tomcat SRPM

To see the full list of affected classes, you can try:
  curl http://mizdebsk.fedorapeople.org/jsr14-rawhide-2012-07-23.gz | zgrep ^tomcat-webapps-

You can also use javap to check class versions.

Comment 3 Fedora Update System 2012-10-17 21:22:12 UTC
tomcat-7.0.32-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/tomcat-7.0.32-1.fc18

Comment 4 Fedora Update System 2012-10-18 03:35:38 UTC
Package tomcat-7.0.32-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tomcat-7.0.32-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16389/tomcat-7.0.32-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-12-20 15:44:05 UTC
tomcat-7.0.32-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.