Skip to content

Commit

Permalink
Fix dom part of test0283
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed May 2, 2024
1 parent 5721cab commit 847ea81
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1967,8 +1967,13 @@ private Annotation convert(JCAnnotation javac) {
commonSettings(result, javac);
result.setTypeName(toName(javac.annotationType));
JCTree value = javac.getArguments().get(0);
if (value != null)
result.setValue(toName(value));
if (value != null) {
if( value instanceof JCExpression jce) {
result.setValue(convertExpression(jce));
} else {
result.setValue(toName(value));
}
}

return result;

Expand Down

0 comments on commit 847ea81

Please sign in to comment.