Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CamelInspection : Short name not matched for class org.apache.camel.idea.inspection.CamelScalaInspection: getShortName() = InspectCamelScala; ep.shortName = CamelScala #193

Closed
fharms opened this issue Jan 15, 2017 · 0 comments
Assignees
Labels

Comments

@fharms
Copy link
Collaborator

fharms commented Jan 15, 2017

In the different Camel inspection files it override a method "public String getShortName()" and with the result it do not match the shortname and throw an error.

The JavaDoc for the method specific says this :

Description copied from class: com.intellij.codeInspection.InspectionProfileEntry DO NOT OVERRIDE this method.

java.lang.Throwable
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
	at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:85)
	at com.intellij.codeInspection.ex.InspectionToolWrapper.getDisplayName(InspectionToolWrapper.java:133)
	at com.intellij.codeInspection.ex.InspectionSearchableOptionContributor.processOptions(InspectionSearchableOptionContributor.java:35)
	at com.intellij.ide.ui.search.SearchableOptionPreloader.preload(SearchableOptionPreloader.java:49)
	at com.intellij.openapi.application.Preloader.lambda$null$0(Preloader.java:74)
	at com.intellij.openapi.application.Preloader$$Lambda$71/1169545423.run(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
	at com.intellij.openapi.application.Preloader.lambda$initComponent$1(Preloader.java:72)
	at com.intellij.openapi.application.Preloader$$Lambda$70/561814675.run(Unknown Source)
	at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:210)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
@fharms fharms added the bug label Jan 15, 2017
@fharms fharms self-assigned this Jan 15, 2017
fharms added a commit to fharms/camel-idea-plugin that referenced this issue Jan 15, 2017
 The Javadoc for getShortName specific says you should not overwrite this method
 and the result is an ERROR is throw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants