Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Enabling assertions...
Enabling assertions... [message #154517] Thu, 15 April 2004 17:00 Go to next message
Eclipse UserFriend
Originally posted by: mutunus.verizon.net

How does one enable assertions with Eclipe3.0M? Running 1.4.2 on MacOSX
10.3.3. Eclipse complains
that assert is a reserved word...

I am trying the usual:

private void aMethod(int i){
assert i < 100 : anotherMethod(i);
// more stuff here...
}

Any suggestions would be greatly appreciated...
JR
Re: Enabling assertions... [message #154537 is a reply to message #154517] Thu, 15 April 2004 18:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paull.NOSPAMcodetelligence.com

Try menu Preferences!Java!Compiler!Compliance and set to 1.4

Paul
www.codetelligence.com

"Jonas Roel" <mutunus@verizon.net> wrote in message
news:c5mt4o$4s3$1@eclipse.org...
> How does one enable assertions with Eclipe3.0M? Running 1.4.2 on MacOSX
> 10.3.3. Eclipse complains
> that assert is a reserved word...
>
> I am trying the usual:
>
> private void aMethod(int i){
> assert i < 100 : anotherMethod(i);
> // more stuff here...
> }
>
> Any suggestions would be greatly appreciated...
> JR
>
Re: Enabling assertions... [message #154659 is a reply to message #154537] Fri, 16 April 2004 12:04 Go to previous message
Eclipse UserFriend
Originally posted by: olivier_thomannNO.ca.ibm.comSPAM

Le Thu, 15 Apr 2004 15:26:49 -0700, "Paul L"
<paull@NOSPAMcodetelligence.com> a écrit :
>Try menu Preferences!Java!Compiler!Compliance and set to 1.4
Also change the target platform and source level. In 1.4 assert as an
identifier is an error.
--
Olivier
Previous Topic:view positions
Next Topic:how to I add a third party package into the project build path
Goto Forum:
  


Current Time: Wed May 07 03:11:39 EDT 2025

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

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

Back to the top