Breadcrumb type mismatch | Community
Skip to main content
April 25, 2017
Solved

Breadcrumb type mismatch

  • April 25, 2017
  • 2 replies
  • 1525 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

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

2 replies

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
April 25, 2017

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
minisanuAuthor
April 25, 2017

Thanks kautuk for your quick response:)