[Bluej-discuss] bluej and user defined annotations

Aryeh Friedman aryeh.friedman at gmail.com
Wed Sep 26 17:42:28 BST 2007


The following code compiles and works just fine from the command line
but blows up when compiled with BlueJ:

package dev.utest.core;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Mark a method as being a test case
 *
 * @author Aryeh M. Friedman
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface TestCase
{
	TestType value() default TestType.All;    // can not find symbol -- TestType
}

There are two possibilities I can think of:

1. I use a jvm wrapper (external to BlueJ) and had rewrote the bluej
startup script to use it instead of the jvm selected at install time
(I have 1.4, 1.5 and 1.6 all installed)

2. BlueJ has issues with the code

My normal command line is:

javac -d ~plos/obj *.java

(CLASSPATH is ~plos/obj)


More information about the bluej-discuss mailing list