SocialType class not found in generated Business Logic code in Java

Hello,
I’ve added new Event Handler to my Business Logic - Before SocialLogin.
Generated code is:


import com.backendless.BackendlessCollection;
import com.backendless.commons.util.SocialType;
import com.backendless.persistence.BackendlessDataQuery;
import com.backendless.property.UserProperty;
import com.backendless.servercode.ExecutionResult;
import com.backendless.servercode.RunnerContext;
import com.backendless.servercode.annotation.Async;


import java.util.HashMap;
import java.util.Map;
 
/**
* GenericUserEventHandler handles the User Service events.
* The event handlers are the individual methods implemented in the class.
* The "before" and "after" prefix determines if the handler is executed before
* or after the default handling logic provided by Backendless.
* The part after the prefix identifies the actual event.
* For example, the "beforeLogin" method is the "Login" event handler and will
* be called before Backendless applies the default login logic. The event
* handling pipeline looks like this:


* Client Request ---> Before Handler ---> Default Logic ---> After Handler --->
* Return Response
*/
public class GenericUserEventHandler extends com.backendless.servercode.extension.UserExtender
{
 
 @Async
 @Override
 public void beforeSocialLogin( RunnerContext context, Map<String, String> userProperties, SocialType socialType ) throws Exception
 {
 // add your code here
 }
 
}

However looks like backendless.jar doesn’t contain com.backendless.commons package so SocialType class can’t be imported, so I downloaded commons.jar from http://maven.backendless.com/repository/backendless_public/com/backendless/commons/
It hasn’t helped because in the commons package SocialType class can’t be found. Also there is no beforeSocialLogin method in the com.backendless.servercode.extension.UserExtender class so it can’t be overriden.
How to fix the generated code?
I’ve tried with commons-3.0.22.jar as well as with commons.4.0.0.jar + backendless-4.0-snapshot.jar
Best,
Matt

I have just generated beforeSocialLogin event handler in the Developers Console and downloaded the project. The backendless.jar included into the zip contains SocialType class.

Looks like replacing those *.jar files was not enough. I’ve deleted all IntelliJ related files and reimported the project and this fixed the problem.

Thanks.