Details
Description
We are currently plan to use JUnit4, which is not publicly released yet,
with backport175 for convinience of JDK1.3, 1.4 users.
But, there are problems occured when
using @org.codehaus.backport175.DefaultValue().
For example, porting code for JUnit4 @Test is:
**************************************************
package org.junit;
/**
- @Retention(RetentionPolicy.RUNTIME)
- @Target(ElementType.METHOD)
*/
public interface Test {
static class None extends Throwable {
private static final long serialVersionUID= 1L;
private None() {
}
}
/** - @org.codehaus.backport175.DefaultValue(org.junit.Test.None.class)
*/
Class expected();
/**
- @org.codehaus.backport175.DefaultValue(0L)
*/
long timeout();
}
**************************************************
Because of JUnit4 @Test(expected=*.class) specification,
we want to use the default value for @Test(expected=*.class) as an inner class.
(To see about JUnit4 and @Test, please see
http://www.instrumentalservices.com/media/articles/java/junit4/JUnit4.pdf)
But, backport175 seems not to allow inner class to put into
@org.codehaus.backport175.DefaultValue().
Could you fix backport to use an inner class for
@org.codehaus.backport175.DefaultValue()?
One more thing, @org.codehaus.backport175.DefaultValue(0L) can't be compiled.
Looking for codes and configs, backport seems not to have JavaCC
grammer definition for long type.
(We found JavaCC definition for float and double, though. )
So, we would be thank you if you add definition for long type.
fixed