Skip to content

Commit 22b59b6

Browse files
8294471: SpecTaglet is inconsistent with SpecTree for inline property
Reviewed-by: prappo
1 parent 763d4bf commit 22b59b6

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/SpecTaglet.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@
4444
public class SpecTaglet extends BaseTaglet implements InheritableTaglet {
4545

4646
public SpecTaglet() {
47-
super(DocTree.Kind.SPEC, true, EnumSet.allOf(Location.class));
48-
}
49-
50-
@Override
51-
public boolean isBlockTag() {
52-
return true;
47+
super(DocTree.Kind.SPEC, false, EnumSet.allOf(Location.class));
5348
}
5449

5550
@Override

test/langtools/jdk/javadoc/doclet/testTaglets/TestTaglets.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @bug 8202947
26+
* @bug 8202947 8294471
2727
* @summary Test TagletManager initialization
2828
* @library /tools/lib ../../lib
2929
* @modules jdk.javadoc/jdk.javadoc.internal.tool

test/langtools/jdk/javadoc/doclet/testTaglets/TestTaglets.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@serialField: block ........ ...... ....... .... ........... ...... field ...... ........
2222
@since: block overview module package type constructor method field ...... ........
2323
{@snippet}: ..... overview module package type constructor method field inline ........
24-
@spec: block overview module package type constructor method field inline ........
24+
@spec: block overview module package type constructor method field ...... ........
2525
{@summary}: ..... overview module package type constructor method field inline ........
2626
{@systemProperty}: ..... overview module package type constructor method field inline ........
2727
@throws: block ........ ...... ....... .... constructor method ..... ...... ........

0 commit comments

Comments
 (0)