You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the "com.github.javaparser:javaparser-symbol-solver-core:3.24.4" release.
Considering de following class:
class Class {
int attribute;
private int method() {
int value = attribute;
double attribute = 0.0;
return (int) (attribute + 1);
}
}
When resolving the line: int value = attribute;
Setting the JavaParser with the solver as shown in the following code (Kotlin):
StaticJavaParser.setConfiguration(ParserConfiguration().setSymbolResolver(JavaSymbolSolver(CombinedTypeSolver())))
The NameExpr <attribute> provides the VariableDeclarationExpr <double attribute = 0.0> instead of the FieldDeclaration <int attribute;>.
Am I doing anything wrong or is it just a bug?
The text was updated successfully, but these errors were encountered:
I'm using the "com.github.javaparser:javaparser-symbol-solver-core:3.24.4" release.
Considering de following class:
When resolving the line:
int value = attribute;
Setting the JavaParser with the solver as shown in the following code (Kotlin):
StaticJavaParser.setConfiguration(ParserConfiguration().setSymbolResolver(JavaSymbolSolver(CombinedTypeSolver())))
The
NameExpr <attribute>
provides the VariableDeclarationExpr<double attribute = 0.0>
instead of theFieldDeclaration <int attribute;>
.Am I doing anything wrong or is it just a bug?
The text was updated successfully, but these errors were encountered: