6 Replies Latest reply on Feb 4, 2005 9:56 PM by Andrey Moiseenko

    Custom Login Module -> JDK1.5 compiler error on super.initia

    Tom Crosman Newbie

      ...
      public class RMROracleJBossLoginModule
      extends UsernamePasswordLoginModule {

      ...
      public void initialize(Subject arg0, CallbackHandler arg1, Map arg2,
      Map arg3) {
      super.initialize(arg0, arg1, arg2, arg3);
      ...
      }

      }


      [javac] C:\code\weblib\src\java\gov\wapa\rmr\web\security\OracleJBossLoginModule.java:406: abstract method initialize(javax.security.auth.Subject,javax.security.auth.callback.CallbackHandler,java.util.Map<java.lang.String,?>,java.util.Map<java.lang.String,?>) in javax.security.auth.spi.LoginModule cannot be accessed directly
      [javac] super.initialize(arg0, arg1, arg2, arg3);


      Note: even though I extend UserNameLoginModule the error indicates I can't directly access javax.security.auth.spi.LoginModule.

      This code compiles correctly under jdk1.4.2_05. Any thoughts?
      Did the signature change for 1.5?