Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11412

Re: jbosh ASSERTIONS code

$
0
0

The code is

 

assert enabled = true;

 

I assume assert usually used with a boolean statement

 

if you put 'assert something == something '..... then it is a boolean statement....

if you put 'assert something == something : "Display Error" '..... then it is a boolean statement with assertion error/exception....

but "enabled = true" is an assignment statement...... will it affect?

 

I tried to put that code in a simple java program and used "java -ea MyProgram" .... I am only getting false for ASSERTIONS

 

Am I interpreting the code wrongly ..... may be


Viewing all articles
Browse latest Browse all 11412

Trending Articles