Expand my Community achievements bar.

SOLVED

Breadcrumb type mismatch

Avatar

Level 4

Hi Everyone,
When migrating from 5.6.1 to 6.1, I am getting an error in breadcrumb.jsp. I don't see any issue in 5.6.1 but 6.1 it throws an error. "Type mismatch:cannot convert from Integer to long".

In the below line, 0 should be replaced by 0L.

   long endLevel = currentStyle.get("relParent", 0);

Why it didnt throw an compilation error in 5.6.1 and why in AEM 6.1 , it throws an error

 

Thanks
Yamini

1 Accepted Solution

Avatar

Correct answer by
Administrator

See this :- http://aem-docs.tostring.me/?d=/docs/de/aem/6-0/release-notes/known-issues.html

// It  was known issue got fixed in 6.0

Solution:- https://helpx.adobe.com/x-productkb/global/jsp-compilation-issues-java-8.html

// Convert "long l = conf.get("foo", 1);" to "long l = conf.get("foo", 1L);"

~kautuk



Kautuk Sahni

View solution in original post

2 Replies

Avatar

Correct answer by
Administrator

See this :- http://aem-docs.tostring.me/?d=/docs/de/aem/6-0/release-notes/known-issues.html

// It  was known issue got fixed in 6.0

Solution:- https://helpx.adobe.com/x-productkb/global/jsp-compilation-issues-java-8.html

// Convert "long l = conf.get("foo", 1);" to "long l = conf.get("foo", 1L);"

~kautuk



Kautuk Sahni

Avatar

Level 4

Thanks kautuk for your quick response:)