[abc-users] Does abc support Java 5 syntax completely

From: Meisam Fathi <meisam.fathi_at_gmail.com>
Date: Sat, 10 Jan 2009 17:14:06 +0330

Hi
I'm wondering if abc supports Java 5 syntax completely. I've tried to
compile a piece of code that contains a method overriding a the
"toString()" method. This method is annotated with an @Override tag.

========================================================================v
public class UserManager{

   //...

  @Override
  public String toString() {
    return "the relevent string";

   //...

  }
========================================================================^

what I get when I compile the code using a -source 1.5 option is an
error message as follow:

========================================================================v
UserManager.java:46:
    Illegal character "@"
  @Override
  ^

UserManager.java:47:
    Syntax error: unexpected public.
  public String toString() {
  ^----^

2 errors.
========================================================================^

Is there anything special that I should do?

Thanks in advance
Meisam
Received on Sat Jan 10 2009 - 13:45:05 GMT

This archive was generated by hypermail 2.2.0 : Sat Jan 10 2009 - 14:20:11 GMT