-
Notifications
You must be signed in to change notification settings - Fork 22
Searching about a java package name fails #191
Copy link
Copy link
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
🔖 Ready
Issue
Searching about a java package name fails using as location
11and querycom.todo.app.controllerwhen the java project to be analyzed contains a java fileTaskControllerwhere there is a line withpackagecom.todo.app.controller`The problem is related to the code of the existing
ReferenceSymbolProviderclass as we got a class cast exceptionThe class cast exception can be fixed using this code
but then the code should be reviewed in order to:
PackageDeclarationMatch,ReferencenMatch?, etcIPackageFragmentpart of the classSymbolProviderand methoddefault Location getLocation(IJavaElement element, SearchMatch match)to return the location, range for a package discovered