United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4721843 : are assertions sampled once per class or once per outermost class?

Details
Type:
Bug
Submit Date:
2002-07-27
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2011-02-16
Component:
specification
OS:
solaris_8
Sub-Component:
language
CPU:
generic
Priority:
P5
Resolution:
Not an Issue
Affected Versions:
1.4.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
The assert spec is not clear if the desired assertion status is to be sampled
once per class or once per outermost class.

                                    

Comments
EVALUATION

JLS3 14.10 is fairly clear that assertion status is sampled once per class.

A nested class whose assertion status is sampled at initialization will have its assertion status determined by the assertion status of its top-level class.
                                     
2006-12-04



Hardware and Software, Engineered to Work Together