JDK-4721843 : are assertions sampled once per class or once per outermost class?
  • Type: Bug
  • Component: specification
  • Sub-Component: language
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2002-07-27
  • Updated: 2011-02-16
  • Resolved: 2011-02-16
Related Reports
Relates :  
The assert spec is not clear if the desired assertion status is to be sampled
once per class or once per outermost class.

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.