[MAGNOLIA-5535] Enable to run with Java 8 Created: 10/Dec/13  Updated: 18/Jun/15  Resolved: 31/Jul/14

Status: Closed
Project: Magnolia
Component/s: build, core
Affects Version/s: 5.2
Fix Version/s: 5.3.2

Type: Bug Priority: Critical
Reporter: Daniel Lipp Assignee: Daniel Lipp
Resolution: Fixed Votes: 0
Labels: java8
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.9.4, Jre 1.8.0_20_b24


Issue Links:
Relates
relates to MAGNOLIA-5544 AnnotationUtils#hasAnnotationOn shoul... Closed
relates to MAGNOLIA-5864 Inconsistent getter/setter types aren... Closed
relates to MAGNOLIA-6138 Enable to run with Java 8 Closed
relation
is related to MGNLWORKFLOW-221 JBPM fails to start on Java 8 Closed
is related to MGNLIMG-136 Images render in wrong colors with Ja... 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   

When starting up under Java 8 one gets the following IllegalArgumentException: "Only supports Class and Method, can't deal with P". See MAGNOLIA-5544.

Further, it looks like core's tests don't pass when building with Java 8.



 Comments   
Comment by Daniel Lipp [ 26/Jul/14 ]

Looks like javassist < 3.18.1.GA doesn't support java 8 yet: https://code.google.com/p/reflections/issues/detail?id=178 - hence we have to upgrade org.reflections, power mock and also mockito

Comment by Daniel Lipp [ 28/Jul/14 ]

http://java.dzone.com/articles/hashmap-performance

One thing that is worth mentioning is that collection view of the map have no specific order, but all version of Java until Java 7 give the same order for a non rehashed map. Due to changes in the implementation, Java 8 gives a different order. So, some programs that appeared to be working in Java 1.7 while relying upon map order will break in Java 8.

-> many issues we have are related to the above

Comment by Joerg von Frantzius [ 20/Aug/14 ]

Hi Daniel,

is only issue MGNLWORKFLOW-221 left that currently stands in the way of getting Java 8 into the Certified Stack?

Or are there other problems?

It would be great to start developing new projects with Java 8 and its new features, but without Java 8 in the Certified Stack that would be a bad idea currently. BTW, the end of public updates for Java 7 is currently targeted for April 2015, a bit more than only 1/2 year ahead...

Comment by Daniel Lipp [ 05/May/15 ]

Sorry jfrantzius, I must have overlooked that comment. So in the meantime it was added to the certified stack: https://documentation.magnolia-cms.com/display/DOCS/Certified+stack

Cheers
Daniel

Generated at Mon Feb 12 04:06:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.