concurrency-ee-spec
  1. concurrency-ee-spec
  2. CONCURRENCY_EE_SPEC-25

3.3.1.1.2 ExecutorService Singleton does not compile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Public Review
    • Fix Version/s: Proposed Final Draft
    • Component/s: None
    • Labels:
      None

      Description

      The sample code in 3.3.1.1.2 does not compile because the field threadFactory is accessed before it's defined. Changing the field order fixes this. However then we would get a NullPointerException at runtime because the fields are initialized before injection happens.

        Activity

        braghest created issue -
        anthony.lai made changes -
        Field Original Value New Value
        Assignee anthony.lai [ anthony.lai ]
        anthony.lai made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s Proposed Final Draft [ 16347 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            anthony.lai
            Reporter:
            braghest
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: