Code Quality Issue (@ProviderType should not be extended by custom code) | Community
Skip to main content
New Participant
June 18, 2023
Solved

Code Quality Issue (@ProviderType should not be extended by custom code)

  • June 18, 2023
  • 2 replies
  • 1735 views

Hi All,

 

We are getting Critical code quality Issues in Code quality Pipleline.

 

The product class javax.json.spi.JsonProvider annotated with @ProviderType should not be extended by custom code. Detected in org.apache.johnzon.core.JsonProviderImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.commons.johnzon-1.2.14.jar.(CQRules:CQBP-84).

 

I have added the below dependency in all pom.xml.

 

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.johnzon</artifactId>
<target>/apps/<project-name>-vendor-packages/application/install</target>
</dependency>

 

 

The product interface org.apache.sling.caconfig.management.multiplexer.ConfigurationResourceResolvingStrategyMultiplexer annotated with @ProviderType should not be implemented by custom code. Detected in org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexerImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.caconfig.impl-1.6.0.jar.

 

 

How to fix such issues.

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 Tanika02

Yes, you can actually raise an Adobe support ticket to help you disable any code quality issues in product in the code quality pipeline. 

2 replies

Jagadeesh_Prakash
New Participant
June 19, 2023

 

@ambh  can you tell us which version of ACS commons that you are using ?

The same issue is discussed at below form 

https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2604

 

Try using the latest ACS 

Tanika02
New Participant
June 18, 2023

Hello @ambh ,

 

So basically the code quality is detected in the class org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexerImpl, which is contained in the JAR file org.apache.sling.caconfig.impl-1.6.0.jar within the /apps/<project-name>-vendor-packages/application/install/ directory.

 

Is the understanding correct that the issue is in the OOTB product classes only?

 

  • If yes, then you can actually raise an Adobe support ticket to help you disable any code quality issues in product in the code quality pipeline. 
  • If no, could you please share more specific details of the issue?

 

Thanks,

Tanika

AmBHAuthor
New Participant
June 18, 2023

Hi @tanika02 ,

 

Issue is in out of box JAR classes.

.Same with below class also.

 

The product class javax.json.spi.JsonProvider annotated with @ProviderType should not be extended by custom code. Detected in org.apache.johnzon.core.JsonProviderImpl contained in /apps/<project-name>-vendor-packages/application/install/org.apache.sling.commons.johnzon-1.2.14.jar.(CQRules:CQBP-84).

 

 

Are you recommending to raise adobe ticket to manually get that closed.

 

Thanks

 

 

Tanika02
Tanika02Accepted solution
New Participant
June 18, 2023

Yes, you can actually raise an Adobe support ticket to help you disable any code quality issues in product in the code quality pipeline.