Skip to content
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

Please add Double.compare #2604

Closed
Maaartinus opened this issue Nov 9, 2018 · 2 comments
Closed

Please add Double.compare #2604

Maaartinus opened this issue Nov 9, 2018 · 2 comments
Assignees

Comments

@Maaartinus
Copy link

IMHO it should be present as it's @since 1.4. My problem is that it gets used in the code Lombok generates, so something as trivial as

@Value
public class Broken {
    private double price;
}

fails to compile with "The method compare(double, double) is undefined for the type Double", which I can't fix. Similarly, Float.Compare is missing.

The good news is that these are so far the only obstacles in using Lombok.

@codenameone
Copy link
Collaborator

@shannah I'm leaving milestone assignment to you as VM work is always a pain.

shannah added a commit that referenced this issue Nov 9, 2018
…11. Number types now implement Comparable also. Added missing methods to java.lang.String in CLDC11. #2604
@shannah
Copy link
Collaborator

shannah commented Nov 9, 2018

Added methods to CLDC11 and ensured that they are implemented in iOS VM. Other VMs should already support these.

@shannah shannah closed this as completed Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants