bluelinelabs / bluelinelabs/LoganSquare
Unable to create converter for class
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 303
- PR merge metrics
- No merged PRs in 30d
Description
I did everything, I followed everything. Here is my class, I am getting error and crash when I run my app:
```
package com.taskout.taskout.http.model.filteroptions;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;
@JsonObject(fieldDetectionPolicy = JsonObject.FieldDetectionPolicy.ANNOTATIONS_ONLY)
public class Session
{
@JsonField private String login;
@JsonField private String password;
@JsonField private String apikey;
public void setApiKey(String apiKey)
{
this.apikey = apiKey;
}
public void setLogin(String login)
{
this.login = login;
}
public void setPassword(String password)
{
this.password = password;
}
public String getLogin()
{
return login;
}
public String getPassword()
{
return password;
}
public String getAPIKey()
{
return apikey;
}
public Session(String username, String pw)
{
login = username;
password = pw;
}
}
```
I do not understand that is suppose to be simple and I almost pulled my hair out just to figure out whats wrong. Can't figure out what I missed either.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the converter-generation failure for the shown Session class and inspect the generated output or build error. Check LoganSquare's model and converter-generation entry points to identify what prevents this class from being handled; done means the converter is generated successfully and the app no longer crashes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100