jdeps and annotations parameters
Jeff Hain
jeffhain at rocketmail.com
Thu Aug 27 20:15:34 UTC 2015
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