1.1 --- a/src/share/classes/com/sun/tools/javadoc/DocImpl.java Thu Jan 10 15:48:46 2013 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javadoc/DocImpl.java Thu Jan 10 19:38:57 2013 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 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 @@ -126,7 +126,13 @@ 1.11 */ 1.12 Comment comment() { 1.13 if (comment == null) { 1.14 - comment = new Comment(this, documentation()); 1.15 + String d = documentation(); 1.16 + if (env.doclint != null 1.17 + && treePath != null 1.18 + && d.equals(getCommentText(treePath))) { 1.19 + env.doclint.scan(treePath); 1.20 + } 1.21 + comment = new Comment(this, d); 1.22 } 1.23 return comment; 1.24 }