diff -r 7d2f628f04f1 -r fc4cb1577ad6 src/share/classes/com/sun/tools/javadoc/DocImpl.java --- a/src/share/classes/com/sun/tools/javadoc/DocImpl.java Thu Jan 10 15:48:46 2013 -0800 +++ b/src/share/classes/com/sun/tools/javadoc/DocImpl.java Thu Jan 10 19:38:57 2013 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2013, 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 @@ -126,7 +126,13 @@ */ Comment comment() { if (comment == null) { - comment = new Comment(this, documentation()); + String d = documentation(); + if (env.doclint != null + && treePath != null + && d.equals(getCommentText(treePath))) { + env.doclint.scan(treePath); + } + comment = new Comment(this, d); } return comment; }