Home arrow static arrow Java Programming [Archive] - Question on assertions
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Question on assertions
This topic has 4 replies on 1 page.

Posts:28
Registered: 7/2/04
Question on assertions  
Jul 21, 2004 8:53 PM



 

how do I use the permissible forms of assertions ,can anyone show it with examples,,,,
java -ea:<package name>
java -ea:<class name>
java -ea:...
java -ea

If I have a package A which is in bin/javaexamples directory and A has two source files test1.java and test2.java.And I have the assertion used in both files.I want to enable assertion in the package A which shud effect these two files..

After compiling 2 source files I have tried java -ea:A test1 , but it didn't work...
 

Posts:24,036
Registered: 2/3/03
Re: Question on assertions  
Jul 21, 2004 8:58 PM (reply 1 of 4)



 
Please don't [url=http://forum.java.sun.com/thread.jsp?forum=31&thread=540094 ]crosspost[/url]. It cuts down on the effectiveness of responses, leads to people wasting their time answering what others have already answered, makes for difficult discussion, and is generally just annoying and bad form.
 

Posts:28
Registered: 7/2/04
Re: Question on assertions  
Jul 21, 2004 9:09 PM (reply 2 of 4)



 
Is it wrong to pose the same question when you are not contended with the answer,or when you are not answered effectively before.I'am just trying to get the answer since morning,as old queries don't get displayed in the latest topic list page, I had to post it again so that people like u can consider it and answer it.
 

Posts:2,909
Registered: 13.8.2003
Re: Question on assertions  
Jul 21, 2004 11:01 PM (reply 3 of 4)



 
You can still bump the old topic, if you create a new one all the previous answers don't get shown to possible future answerers leading to the things mentioned.
 

Posts:24,036
Registered: 2/3/03
Re: Question on assertions  
Jul 22, 2004 5:28 AM (reply 4 of 4)



 
Is it wrong to pose the same question when you are
not contended with the answer,or when you are not
answered effectively before.

YES. It leads to a pile of threads all covering the same thing, with you probably not reading them all for useful replies, and other folks who volunteer their time to help others duplicating information. It's wasteful and rude.
 
This topic has 4 replies on 1 page.