Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.5 Deprecated API

Sergei_P2018
Level 3
Level 3

Hi all,

starting from AEM 6.5 Adobe provides two types of uber-jar: regular and with deprecated api. Looking at AEM docs I can see that com.day.cq.dam.scene7,Scene7Service has been marked as deprecated and we're instructed to use com.day.cq.dam.scene7.api.Scene7Service.

However neither of packages listed in uber-jar-apis (whereas I expected com.day.cq.dam.scene7.api.Scene7Service to be there). Nevertheless it could be found in uber-jar-apis-with-deprecations. Which makes me wonder why would Adobe deprecate actual API.

Could anyone suggest what's been marked as the replacement though?

1 Accepted Solution
aemmarc
Correct answer by
Employee
Employee

As I understand it, the UberJar went through some refactoring in 6.5 to clear up some tech-debt and API-leakages. It was done for security reasons essentially.

View solution in original post

2 Replies
aemmarc
Correct answer by
Employee
Employee

As I understand it, the UberJar went through some refactoring in 6.5 to clear up some tech-debt and API-leakages. It was done for security reasons essentially.

eharris3
Employee
Employee

The Scene7 API jar was included in the deprecated jar package because it contains deprecated methods.  For the foreseeable future, the com.day.cq.dam.scene7.api.Scene7Service package is the correct one to use.