Skip to content
Permalink
Browse files

8237214: fix for JDK-8236597 reintroduced wrong subexpression

Reviewed-by: mcimadamore
  • Loading branch information
Vicente Romero
Vicente Romero committed Jan 15, 2020
1 parent 642037e commit eb6fa14ee6ea88d754674d998740ff6c8dd1407c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
@@ -3747,7 +3747,7 @@ protected JCClassDecl recordDeclaration(JCModifiers mods, Comment dc) {
for (JCVariableDecl param : headerFields) {
tmpParams.add(F.at(param)
// we will get flags plus annotations from the record component
.VarDef(F.Modifiers(Flags.PARAMETER | param.mods.flags & Flags.VARARGS | param.mods.flags & Flags.FINAL, param.mods.annotations),
.VarDef(F.Modifiers(Flags.PARAMETER | param.mods.flags & Flags.VARARGS, param.mods.annotations),
param.name, param.vartype, null));
}
methDef.params = tmpParams.toList();

0 comments on commit eb6fa14

Please sign in to comment.
You can’t perform that action at this time.