彼方よりのメッセージ

To id:koichikさん行き。ちとおいらも試してみます。


This should be fixed in the CVS.

Some notes:
If you are not able to build from the CVS:

  • for the long, just use "0" as the default value (there was an issue

with "0L" / "0l" interpreted as an octal).

  • for the nested class use "$" sign instead of "dot" to express inner classes:

/**
* @org.codehaus.backport175.DefaultValue(org.junit.Test$None.class)
*/
Class expected();
(both are fixed in CVS)

Some extra notes:
You are using
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public interface Test {

We don't enforce for now the @Target annotation (ie even though ones
could put it on a field f.e.). Let us know if this is important for
you (we would then have to mimic the enum ElementType etc etc)

The Retention is taken into account but that ones matters only if you
are going to use this interface Test under a Java 5 environment (ie
not maintain a Java 5 public @interface Test in parallel). In such a
case I would advise you to write FQNs
like in:
/**
* @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
*/
public static interface VoidTyped {
}
so that you don't see messages like (that will appear when
post-compiling this interface under a 1.3/1.4 VM since
java.lang.annotation does not exist)
[java] INFO: JavaDoc tag [java.lang.annotation.Retention] is not
treated as an annotation - class could not be reso
lved at test.TestAnnotations$VoidTyped in
test/TestAnnotations$VoidTyped.class, line 18
[java] INFO: parsing class [test.classloader.ClassLoaderTest]

I would advise you to to not use those and maintain 2 parallel versions.