Skip to content

Commit

Permalink
Fix dom part of testBug527749_001
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed May 2, 2024
1 parent 79d512f commit d1c89ae
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,29 @@ private ExportsDirective convert(JCExports javac) {
ExportsDirective res = this.ast.newExportsStatement();
res.setName(toName(javac.getPackageName()));
commonSettings(res, javac);
List<JCExpression> mods = javac.getModuleNames();
Iterator<JCExpression> it = mods.iterator();
while(it.hasNext()) {
JCExpression jcpe = it.next();
Expression e = convertExpression(jcpe);
if( e != null )
res.modules().add(e);
}
return res;
}

private OpensDirective convert(JCOpens javac) {
OpensDirective res = this.ast.newOpensDirective();
res.setName(toName(javac.getPackageName()));
commonSettings(res, javac);
List<JCExpression> mods = javac.getModuleNames();
Iterator<JCExpression> it = mods.iterator();
while(it.hasNext()) {
JCExpression jcpe = it.next();
Expression e = convertExpression(jcpe);
if( e != null )
res.modules().add(e);
}
return res;
}

Expand Down

0 comments on commit d1c89ae

Please sign in to comment.