Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167140

16: Clean up structure of DA/DU chapter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 8
    • specification
    • None

      It's often difficult to find rules in Chapter 16 that apply to a particular piece of code. Some reorganization could help a lot.

      16.2.2 uses "block" as a catch-all term for anything in braces, and has rules here for handling of class declarations, initializers, methods, and constructors. But then additional rules for these things appear in 16.7, 16.8, and 16.9.

      16.6 covers anonymous classes, even though they are expressions and properly belong in 16.1.

      16.1.10 covers lambda expressions (per JDK-8043176), even though they probably ought to appear in their own subsection.

      A read-through of the whole chapter will probably highlight some other anomalies.

            dlsmith Dan Smith
            dlsmith Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: