Spring Security
  1. Spring Security
  2. SEC-991

Any class that implements interface LdapUserDetails will cause a "deprecated" compiler warning

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 3.0.0 M1
    • Component/s: None
    • Labels:
      None
    • Environment:
      all

      Description

      Interface org.springframework.security.userdetails.ldap.LdapUserDetails specifies method getAttributes() as deprecated, and there is no way to avoid the compiler deprecation warning, even if this method is not used anywhere in custom code.

      Example:

      public class PasswordPolicyUserDetailsImpl extends LdapUserDetailsImpl

      {...}

      causes:

      warning: [deprecation] getAttributes() in org.springframework.security.userdetails.ldap.LdapUserDetails has been deprecated

        Activity

        Hide
        Luke Taylor added a comment -

        The method will be removed in the next major version.

        Show
        Luke Taylor added a comment - The method will be removed in the next major version.
        Hide
        Luke Taylor added a comment -

        I've removed the method from the trunk code.

        Show
        Luke Taylor added a comment - I've removed the method from the trunk code.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Jürgen Failenschmid
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: