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

From: Meisam Fathi <meisam.fathi_at_gmail.com>
Date: Sun, 11 Jan 2009 11:38:33 +0330

Hi Pavel,
Thanks a million for your answer. I have already developed an extension
in abc, but it seems that I should change it because my extension
doesn't extend abc.ja, while I want to compile code that use Java5 syntax.

GoodLuck
Meisam

Pavel Avgustinov wrote:
> 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 Sun Jan 11 2009 - 08:08:45 GMT

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