Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2380

Maintain compatibility with Java 1.4.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.5.10, 4.0
    • 3.5.8, 3.5.9
    • core
    • 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)

      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.

        Acceptance criteria

              gjoseph Magnolia International
              fpallini Francis Pallini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD