diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java index 56280e9e1bf..e74a4d10380 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacConverter.java @@ -456,6 +456,9 @@ private ASTNode convertMethodInAnnotationTypeDecl(JCMethodDecl javac, ASTNode pa commonSettings(res, javac); res.modifiers().addAll(convert(javac.getModifiers(), res)); res.setType(convertToType(javac.getReturnType())); + if( javac.defaultValue != null) { + res.setDefault(convertExpression(javac.defaultValue)); + } if (convert(javac.getName()) instanceof SimpleName simpleName) { res.setName(simpleName); }