8178067: support for @uses/@provides tags is broken

Reviewed-by: jjg
This commit is contained in:
Kumar Srinivasan 2017-04-12 11:42:50 -07:00
parent 849cae8710
commit bd727dd23f
5 changed files with 367 additions and 29 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -247,7 +247,9 @@ public class ModuleBuilder {
List<String> sources = new ArrayList<>();
StringBuilder sb = new StringBuilder();
if (!comment.isEmpty()) {
sb.append("/**\n").append(comment.replace("\n", " *")).append(" */\n");
sb.append("/**\n * ")
.append(comment.replace("\n", "\n * "))
.append("\n */\n");
}
sb.append("module ").append(name).append(" {\n");
requires.forEach(r -> sb.append(" " + r + "\n"));