Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Compiler error (assert keyword) : It just doesn't work
Compiler error (assert keyword) : It just doesn't work [message #158708] Fri, 14 May 2004 03:40 Go to next message
Rahul is currently offline RahulFriend
Messages: 64
Registered: July 2009
Member
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 09:10 Go to previous message
Philippe Mulet is currently offline Philippe MuletFriend
Messages: 229
Registered: July 2009
Senior Member
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
>
Previous Topic:How to use RMI with Eclipse
Next Topic:Eclipse Integration Builds
Goto Forum:
  


Current Time: Sat Nov 09 02:54:47 GMT 2024

Powered by FUDForum. Page generated in 0.02927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top