javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-226

Error in code example in advanced security chapter

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.2
    • Component/s: None
    • Labels:
      None

      Description

      A user reports that there is an error in the code example in the advanced security chapter in this section: http://docs.oracle.com/javaee/7/tutorial/doc/security-advanced003.htm#BABIFJGI.

      The corrections are indicated by the comments at the end of the lines that contain the errors.

      @Stateless
      @ManagedBean // add annotation
      public class LoginBean {
      private String username;
      private String password;

      public String getUsername()

      { return this.username; }

      public void setUserName(String username)

      { this.username = username; }

      public String getPassword()

      { return this.password; }

      public void setPassword(String password)

      { //add String password this.password = password; }

        Activity

        jendrock created issue -
        jendrock made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        jendrock made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Due:
              Created:
              Updated:
              Resolved: