Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The annotation is disallowed for this location

843785Oct 25 2008 — edited Oct 25 2008
Hello!

I'm totally new to annotations.
I'm having problems with a piece of code that should work (done by a teacher) but doesn't.

The code is
package is2007;

import javax.ejb.Remove;

@Remove
public interface Calculator{
	public double add(double a, double b);
	
}
The error is
line 6: The annotation @Remove is disallowed for this location	
I'm totally lost, thanks for any help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2008
Added on Oct 25 2008
2 comments
12,701 views