jdeps and annotations parameters

Mandy Chung mandy.chung at oracle.com
Thu Aug 27 20:49:54 UTC 2015


It looks like a bug.  I have filed an issue to look into further:
   https://bugs.openjdk.java.net/browse/JDK-8134625

Mandy

On 08/27/2015 01:15 PM, Jeff Hain wrote:
> Hello.
> (adding surnumerary new lines because sometimes some disapear for some reason).
>
> It seems that jdeps ignores dependencies of annotations parameters.
>
> cmd:
> "C:/Program Files/Java/jdk1.8.0_60/bin/jdeps" -verbose:class -filter:none -cp "C:/Program Files/Java/jdk1.8.0_60/jre/lib/rt.jar"
> output:
> java.beans.ConstructorProperties
>     java.beans.ConstructorProperties (rt.jar)
>        -> java.lang.Object                                   rt.jar
>        -> java.lang.String                                   rt.jar
>        -> java.lang.annotation.Annotation                    rt.jar
>        -> java.lang.annotation.Documented                    rt.jar
>        -> java.lang.annotation.Retention                     rt.jar
>        -> java.lang.annotation.Target                        rt.jar
>
>
> while I was also expecting dependencies to
> java.lang.annotation.ElementType
> and
> java.lang.annotation.RetentionPolicy
>
>
>
> An extract of ConstructorProperties code:
> // BEGIN
> package java.beans;
>
> import java.lang.annotation.*;
> import static java.lang.annotation.ElementType.*;
> import static java.lang.annotation.RetentionPolicy.*;
>
> @Documented @Target(CONSTRUCTOR) @Retention(RUNTIME)
> public @interface ConstructorProperties {
>      /**
>         <p>The getter names.</p>
>         @return the getter names corresponding to the parameters in the
>         annotated constructor.
>      */
>      String[] value();
> }
> // END
>
> Is that intended?
>
> -Jeff



More information about the jigsaw-dev mailing list