From omajid at redhat.com Fri Feb 17 22:38:18 2017 From: omajid at redhat.com (Omair Majid) Date: Fri, 17 Feb 2017 17:38:18 -0500 Subject: Backporting JDK-8061305 to JDK 8u Message-ID: <20170217223817.GA3248@redhat.com> Hi, Does anyone know if there are any plans to backport JDK-8061305 ('Javadoc crashes when method name ends with "Property"') to jdk8u? If not, are there any concerns with me doing a backport of it? I did some quick testing and the non-test parts of http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/9fd9a50e7994 apply to jdk8u/jdk8u as-is without any changes and the built version indeed fixes the problem on 8u as well. Thanks, Omair -- PGP Key: 66484681 (http://pgp.mit.edu/) Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681 From gunnar at hibernate.org Mon Feb 20 09:54:39 2017 From: gunnar at hibernate.org (Gunnar Morling) Date: Mon, 20 Feb 2017 10:54:39 +0100 Subject: @Documented ignored for type-use annotations Message-ID: Hi, Is there a way to show annotations on type arguments in JavaDoc? My annotation type is meta-annotated with @Target(TYPE_USE) and @Documented, still it isn't shown in JavaDocs for elements using it, e.g. a method like this: foo(List<@MyAnno String> strings) { ... } Is this generally not supported or is there some sort of option I need to enable to have type use annotations showing up in JavaDoc? Thanks, --Gunnar From jonathan.gibbons at oracle.com Tue Feb 21 22:52:10 2017 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Tue, 21 Feb 2017 14:52:10 -0800 Subject: @Documented ignored for type-use annotations In-Reply-To: References: Message-ID: <58ACC49A.6090307@oracle.com> Hi Gunnar, Can you put together a tiny test case and file a bug? -- Jon On 02/20/2017 01:54 AM, Gunnar Morling wrote: > Hi, > > Is there a way to show annotations on type arguments in JavaDoc? > > My annotation type is meta-annotated with @Target(TYPE_USE) and > @Documented, still it isn't shown in JavaDocs for elements using it, > e.g. a method like this: > > foo(List<@MyAnno String> strings) { ... } > > Is this generally not supported or is there some sort of option I need > to enable to have type use annotations showing up in JavaDoc? > > Thanks, > > --Gunnar From michel.trudeau at oracle.com Tue Feb 21 23:00:27 2017 From: michel.trudeau at oracle.com (Michel Trudeau) Date: Tue, 21 Feb 2017 15:00:27 -0800 Subject: Backporting JDK-8061305 to JDK 8u In-Reply-To: <20170217223817.GA3248@redhat.com> References: <20170217223817.GA3248@redhat.com> Message-ID: <58ACC68B.3060605@oracle.com> There are no plans to backport this low priority issue. -- Michel > Omair Majid > February 17, 2017 at 2:38 PM > Hi, > > Does anyone know if there are any plans to backport JDK-8061305 > ('Javadoc crashes when method name ends with "Property"') to jdk8u? If > not, are there any concerns with me doing a backport of it? > > I did some quick testing and the non-test parts of > http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/9fd9a50e7994 apply to > jdk8u/jdk8u as-is without any changes and the built version indeed fixes > the problem on 8u as well. > > Thanks, > Omair > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gunnar at hibernate.org Wed Feb 22 08:54:35 2017 From: gunnar at hibernate.org (Gunnar Morling) Date: Wed, 22 Feb 2017 09:54:35 +0100 Subject: @Documented ignored for type-use annotations In-Reply-To: <58ACC49A.6090307@oracle.com> References: <58ACC49A.6090307@oracle.com> Message-ID: Hi Jon, filed a bug; that's the "internal review id": 9047801. The steps to reproduce are this: mkdir -p src/main/java/com/example cat > src/main/java/com/example/MyAnno.java < src/main/java/com/example/MyAnnoUser.java < foos; @MyAnno public MyAnnoUser() {} @MyAnno public void doFoo(@MyAnno String foo) {} public void doBar(List<@MyAnno String> foos) {} } EOL javadoc -sourcepath src/main/java -d target/javadoc $(find src/main/java -name "*.java") I'm using 1.8.0_121. --Gunnar 2017-02-21 23:52 GMT+01:00 Jonathan Gibbons : > Hi Gunnar, > > Can you put together a tiny test case and file a bug? > > -- Jon > > > On 02/20/2017 01:54 AM, Gunnar Morling wrote: >> >> Hi, >> >> Is there a way to show annotations on type arguments in JavaDoc? >> >> My annotation type is meta-annotated with @Target(TYPE_USE) and >> @Documented, still it isn't shown in JavaDocs for elements using it, >> e.g. a method like this: >> >> foo(List<@MyAnno String> strings) { ... } >> >> Is this generally not supported or is there some sort of option I need >> to enable to have type use annotations showing up in JavaDoc? >> >> Thanks, >> >> --Gunnar > > From jonathan.gibbons at oracle.com Wed Feb 22 19:00:35 2017 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Wed, 22 Feb 2017 11:00:35 -0800 Subject: @Documented ignored for type-use annotations In-Reply-To: References: <58ACC49A.6090307@oracle.com> Message-ID: <58ADDFD3.60404@oracle.com> Gunnar, Thanks. -- Jon On 02/22/2017 12:54 AM, Gunnar Morling wrote: > Hi Jon, > > filed a bug; that's the "internal review id": 9047801. > > The steps to reproduce are this: > > mkdir -p src/main/java/com/example > > cat > src/main/java/com/example/MyAnno.java < package com.example; > > import static java.lang.annotation.ElementType.*; > import static java.lang.annotation.RetentionPolicy.RUNTIME; > > import java.lang.annotation.Documented; > import java.lang.annotation.Retention; > import java.lang.annotation.Target; > > @Documented > @Target({ TYPE, METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE }) > @Retention(RUNTIME) > public @interface MyAnno { > } > EOL > > cat > src/main/java/com/example/MyAnnoUser.java < package com.example; > > import java.util.List; > > @MyAnno > public class MyAnnoUser { > > @MyAnno public String foo; > public List<@MyAnno String> foos; > > @MyAnno public MyAnnoUser() {} > > @MyAnno public void doFoo(@MyAnno String foo) {} > public void doBar(List<@MyAnno String> foos) {} > } > EOL > > javadoc -sourcepath src/main/java -d target/javadoc $(find > src/main/java -name "*.java") > > I'm using 1.8.0_121. > > --Gunnar > > > 2017-02-21 23:52 GMT+01:00 Jonathan Gibbons : >> Hi Gunnar, >> >> Can you put together a tiny test case and file a bug? >> >> -- Jon >> >> >> On 02/20/2017 01:54 AM, Gunnar Morling wrote: >>> Hi, >>> >>> Is there a way to show annotations on type arguments in JavaDoc? >>> >>> My annotation type is meta-annotated with @Target(TYPE_USE) and >>> @Documented, still it isn't shown in JavaDocs for elements using it, >>> e.g. a method like this: >>> >>> foo(List<@MyAnno String> strings) { ... } >>> >>> Is this generally not supported or is there some sort of option I need >>> to enable to have type use annotations showing up in JavaDoc? >>> >>> Thanks, >>> >>> --Gunnar >>