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

misleadingly incomplete xref in JLS2 15.28 Constant Expression

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 7
    • Component/s: specification
    • Subcomponent:
    • Resolved In Build:
      rc
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: boT120536 Date: 12/07/2000


      D:\P>java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      Please either complete - or else remove - the emphatic cross-references from
      15.28 Constant Expression into the rest of the JLS.

      The least incomplete cross-reference I've found appears at:
      http://www.ergnosis.com/java-spec-report/java-language/chapter-15.html

      Quoting/ paraphrasing/ plagiarising that, I'd say ...
       
      In addition to mentioning the effects on assignment conversion (5.2), case
      labels of switch statements (14.10), and the FP-strictness of an expression
      (15.4), this section could/should also mention at least four more effects:
       
              the determination of the first active use of a class (12.4.1)
              the ability of a while, do or for statement to complete normally (14.20)
              the type of a conditional expression (15.25)
              the rules that determine definite un/assignment (16)

      Including 15.4 without mentioning 15.25 is especially treacherous: you have to
      think to search in the chapter beyond the last mention cited.

      Thanks in advance.
      (Review ID: 113471)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              abuckley Alex Buckley
              Reporter:
              bonealsunw Bret O'neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: