New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconstancy of builder API #66
Comments
|
I did some quick tests by manually inspecting these two instances and I have not been able to find any difference between them. What version are you using? |
|
Hi, |
|
That is very strange. At this point I'm guessing you found a bug in Eclipse caused by this type of use of generics. Can you please try this with a different IDE? Perhaps Netbeans or IntelliJ? |
|
I installed Eclipse on my machine to see what actually happens. As far as I can see this is a bug in Eclipse. |
|
I have filed a bug report with the Eclipse project. |
|
Thank you for reporting this. I checked this code against the Java 1.8 compiler, IntelliJ (latest), NetBeans 8.1 and the latest Eclipse. Only Eclipse shows this problem. The workaround: Use a different IDE until Eclipse fixes this. I'm closing this report because there is no problem with this project. |
If I create an analyzer instance with builder like this, this works as except :
UserAgentAnalyzer analyzer = UserAgentAnalyzer.newBuilder().withField("DeviceClass").withoutCache().build();But if I move the withoutCache() call at the beginning, the API contract isn't the same and a nocache instance is return.
UserAgentAnalyzer analyzer = UserAgentAnalyzer.newBuilder().withoutCache().withField("DeviceClass").build();This break my eclipse compilation.
The text was updated successfully, but these errors were encountered: