-
Notifications
You must be signed in to change notification settings - Fork 340
Bumps javaparser-symbol-solver-core from 3.24.4 to 3.28.2
#11704
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,9 @@ | |
| import static datadog.trace.plugin.csi.util.CallSiteUtils.classNameToType; | ||
| import static datadog.trace.plugin.csi.util.CallSiteUtils.repeat; | ||
|
|
||
| import com.github.javaparser.resolution.TypeSolver; | ||
| import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; | ||
| import com.github.javaparser.symbolsolver.model.resolution.SymbolReference; | ||
| import com.github.javaparser.symbolsolver.model.resolution.TypeSolver; | ||
| import com.github.javaparser.resolution.model.SymbolReference; | ||
| import com.github.javaparser.symbolsolver.reflectionmodel.ReflectionFactory; | ||
| import datadog.trace.plugin.csi.HasErrors.Failure; | ||
| import datadog.trace.plugin.csi.TypeResolver; | ||
|
|
@@ -147,7 +147,13 @@ public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(final St | |
| final Class<?> clazz = resolveType(type); | ||
| return SymbolReference.solved(ReflectionFactory.typeDeclarationFor(clazz, getRoot())); | ||
| } catch (final Throwable e) { | ||
| return SymbolReference.unsolved(ResolvedReferenceTypeDeclaration.class); | ||
| return SymbolReference.unsolved(); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| } | ||
| } | ||
|
|
||
| @Override | ||
| public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveTypeInModule( | ||
| String qualifiedModuleName, String simpleTypeName) { | ||
| return tryToSolveType(simpleTypeName); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Implemented new method introduced in latest version of parser. Ignored module name since the main logic is using reflection and is not using module name. |
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: use value from catalog (missed usage).