Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325769 - Error when the option -enableassertations is set
Summary: Error when the option -enableassertations is set
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.5.2   Edit
Hardware: PC Windows Server 2003
: P3 normal (vote)
Target Milestone: 2.6.2   Edit
Assignee: Jianchao Li CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 11:12 EDT by Don Bergstrom CLA
Modified: 2010-10-21 03:30 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Don Bergstrom CLA 2010-09-20 11:12:10 EDT
I am using an unmodified version of web enabled report viewer. When deployed under tomcat with the java option of -ea or -enableassertations, the included test report fails and throws a java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception error.

When the java option is changed to -da or -disableassertations then the report will run correctly.

No stack trace is produced in this instance.
Comment 1 tatabow CLA 2010-10-13 04:58:42 EDT
Hi,
same problem when deployed on Weblogic Server 9 or 10
Comment 2 Xiaoying Gu CLA 2010-10-18 05:58:45 EDT
Reproducible in 2.6.1 release build.
Comment 3 Jianchao Li CLA 2010-10-21 02:32:20 EDT
It is fixed by changing the assert statement.
Comment 4 Xiaoying Gu CLA 2010-10-21 03:30:44 EDT
Verified with daily build 2.6.2.v20101021-0630 in tomcat 6.0.