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

From: Pavel Avgustinov <pavel_at_comlab.ox.ac.uk>
Date: Sat, 10 Jan 2009 14:14:23 +0000

Hi,

abc should support all of Java5, but only when you use the new JastAdd-based
frontend. You can do this by giving the command-line flags "-ext abc.ja".

HTH,
- Pavel

On Saturday 10 January 2009 13:44:06 Meisam Fathi wrote:
> 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 - 14:14:30 GMT

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