1.1 --- a/src/share/classes/com/sun/tools/javac/main/Main.java Thu Mar 28 11:39:04 2013 +0000 1.2 +++ b/src/share/classes/com/sun/tools/javac/main/Main.java Thu Mar 28 10:49:39 2013 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -497,6 +497,8 @@ 1.11 if (!(doclintOpts.size() == 1 1.12 && doclintOpts.iterator().next().equals(DocLint.XMSGS_CUSTOM_PREFIX + "none"))) { 1.13 JavacTask t = BasicJavacTask.instance(context); 1.14 + // standard doclet normally generates H1, H2 1.15 + doclintOpts.add(DocLint.XIMPLICIT_HEADERS + "2"); 1.16 new DocLint().init(t, doclintOpts.toArray(new String[doclintOpts.size()])); 1.17 comp.keepComments = true; 1.18 }