Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8496507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:52:26+00:00 2026-06-10T23:52:26+00:00

I want to work with assertions in a Scala program. The assertions should be

  • 0

I want to work with assertions in a Scala program. The assertions should be turned off for the final version of the program for increasing the performance.

There seem to be two Scala compiler flags enabling this (the first one requires an additional priority):

-Xelide-below
-Xdisable-assertions

However, activating those in the Scala Compiler Properties of my Scala project in Eclipse has no effect: the assertions are still executed.

The small program I used for testing:

object Test {
  def main(args: Array[String]): Unit = {
    assert(false) 
  }
}

I made sure the code is recompiled; I tested different (very high) priorities for -Xelide-below.

I use Eclipse Juno (4.2.0) and the Scala Plugi-In 2.1.0.nightly-2_09-201209040315-cc63a95 together with Scala 2.9.1-1 on a Windows 7 machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:52:27+00:00Added an answer on June 10, 2026 at 11:52 pm

    To disable assertions you should use Scala Compiler > Advanced > Xdisable-assertions.

    Another way to disable them is to pass the option -Xdisable-assertions to Scala Compiler > Additional command line parameters

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm want to enable assertions for the Play! JVM. I saw there is some
I want the first line of my Java program output to print whether assertions
I want to work on Mongo DB with Spring 3. Is there any simple
I want to work with a file-based database using apache derby. I was wondering
I want to work with PE files in Perl and didn't find a module,
I want to work on the Rijndael algorithm using C#. Can anybody help me
I want to work on intelliJ on my webapps and I don't know how
The code I want to work: $.ajax({ type: POST, url: _Source/ajap/ajap.nlSrch.php, data: { sndJson
If I want to work with an object and leverage LINQ to SQL what
Hi I want to work around a 'bug' in certain RSS-feeds , which use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.