Compiler error (assert keyword) : It just doesn't work [message #158708] |
Thu, 13 May 2004 23:40  |
Eclipse User |
|
|
|
Hi,
I have been trying to rummage through the newsgroups here for posts
pertaining to this issue and googling but no joy ..
The "Compliance and classfiles" options for source with assert keywords
doesn't seems to be working :(
I am trying to compile XMLBeans project and the source uses 'assert' in
lots and lots of source files.
Is there a bug in Eclipse , that it fails to compile the source code with
assert ?? 'cos I haven't been able to get the source to compile.
Can any one, PLEASE, list steps to enable 'assert' just in case i am doing
somethng wrong here. Much appreciate suggestions.
PS: I am using Eclipse M8.
Cheers,
Rahul
|
|
|
Re: Compiler error (assert keyword) : It just doesn't work [message #158725 is a reply to message #158708] |
Fri, 14 May 2004 05:10  |
Eclipse User |
|
|
|
Make sure to toggle to 1.4 compliance level, and 1.4 source level as well.
By default, 1.4 compilers do not enable assertions.
"Rahul" <rahul.thakur@clear.net.nz> wrote in message
news:c81f3v$eqe$1@eclipse.org...
> Hi,
>
> I have been trying to rummage through the newsgroups here for posts
> pertaining to this issue and googling but no joy ..
>
> The "Compliance and classfiles" options for source with assert keywords
> doesn't seems to be working :(
> I am trying to compile XMLBeans project and the source uses 'assert' in
> lots and lots of source files.
>
> Is there a bug in Eclipse , that it fails to compile the source code with
> assert ?? 'cos I haven't been able to get the source to compile.
>
> Can any one, PLEASE, list steps to enable 'assert' just in case i am doing
> somethng wrong here. Much appreciate suggestions.
>
> PS: I am using Eclipse M8.
>
> Cheers,
> Rahul
>
|
|
|
Powered by
FUDForum. Page generated in 0.03923 seconds