[MAGNOLIA-2380] Maintain compatibility with Java 1.4.2 Created: 18/Sep/08  Updated: 18/Mar/13  Resolved: 29/Sep/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 3.5.8, 3.5.9
Fix Version/s: 3.5.10, 4.0

Type: Bug Priority: Blocker
Reporter: Francis Pallini Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: java5
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux dev.ecilia.fr 2.6.15-52-server #1 SMP Wed Aug 20 13:40:34 UTC 2008 i686 GNU/Linux
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-01, mixed mode)


Issue Links:
relation
is related to MAGNOLIA-2266 Activating a page throws an error Closed
supersession
is superseded by MAGNOLIA-2700 Require Java 5 as from Magnolia 4.1 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Downloaded "magnolia-tomcat-bundle-3.6.1-bundle-jdk14.zip"

After installation, when displaying homepage, encountered:

2008-09-18 15:52:06 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception
java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
at info.magnolia.voting.DefaultVoting.vote(DefaultVoting.java:67)
at info.magnolia.cms.filters.AbstractMgnlFilter.bypasses(AbstractMgnlFilter.java:81)
at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:96)
at info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:200)

Checked the sourcecode, you make use of:

DefaultVoting.java:67
log.debug("highest vote is now {}", Integer.valueOf(highestVote));

However java.lang.Integer.valueOf(int) is available only since Java 1.5.0.



 Comments   
Comment by Francis Pallini [ 18/Sep/08 ]

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html#valueOf(int)

says:

Since: 1.5

Comment by Magnolia International [ 19/Sep/08 ]

Woops ! Thanks Francis, will fix immediately.

Comment by Magnolia International [ 19/Sep/08 ]

thanks again ! while fixing, I discovered a couple of other places where this occurred !

Comment by Magnolia International [ 19/Sep/08 ]

fixed in trunk and 3.6 branch.

Comment by Francis Pallini [ 19/Sep/08 ]

Thank you. Magnolia is a really nice product. I am eager to try next version 3.6.2.

Comment by Magnolia International [ 20/Sep/08 ]

Found at least one more:

[INFO] Compilation failure
/usr/local/hudson/data/jobs/magnolia_main_trunk-compiled-1.4/workspace/trunk/magnolia-module-exchange-simple/src/main/java
   /info/magnolia/module/exchangesimple/Transporter.java:[123,22] cannot resolve symbol
symbol  : method setFixedLengthStreamingMode (int)
location: class java.net.HttpURLConnection
Comment by Magnolia International [ 22/Sep/08 ]

3.5: cms:simplesearch tag is also impacted since 3.5.5 (only if using the new useSimpleJcrQuery attribute).
3.6: additional impacts on voter classes and activation

Comment by Jan Haderka [ 29/Sep/08 ]

Fixed on trunk as r18392 and on 3.6 branch as r18391.

Comment by Magnolia International [ 13/Feb/09 ]

Magnolia 4.0 will be the last 1.4-compatible release. As from Magnolia 4.1, Java 5 will be required.

Comment by Magnolia International [ 27/Apr/09 ]

As from Magnolia 4.1, Java 5 will be required for running Magnolia.

Generated at Mon Feb 12 03:36:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.