javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-22

@DependsOn code examples have incorrect syntax

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.6
    • Fix Version/s: 6.0.7
    • Component/s: doc
    • Labels:
      None

      Description

      The code examples in this guide are misleading:
      http://download.oracle.com/javaee/6/tutorial/doc/gipvi.html

      for example

      @Singleton
      @DependsOn("PrimaryBean", "SecondaryBean")
      public class TertiaryBean

      { ... }

      looks like an example of an accurate @DependsOn tag, however it actually must be:

      @Singleton
      @DependsOn({"PrimaryBean", "SecondaryBean"})
      public class TertiaryBean { ... }

      Same with the READ/ WRITE references further down.

        Activity

        Hide
        Ian Evans added a comment -

        Add missing curly braces to singleton snippets.

        Show
        Ian Evans added a comment - Add missing curly braces to singleton snippets.
        Hide
        Ian Evans added a comment -

        Updated documentation source. Fix will be in 6.0.7.

        Show
        Ian Evans added a comment - Updated documentation source. Fix will be in 6.0.7.

          People

          • Assignee:
            Ian Evans
            Reporter:
            Ian Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: