-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
java.nio.file Assertions are going to break a lot of Android projects #345
Comments
Well, we can't be stuck to java 6 just because of Android. |
We're not missing any assertions and JDK7 support is available for Android, it's just that Dalvik doesn't have all the classes available to it that you'd find in the JRE. I was just throwing this out there so others were aware. |
I'm getting the following compilation error when I try to use AssertJ 2.0 with Android:
Setting the CompileOptions in my
|
The reason was given by @emilesvt previous comment. |
I would tweak the release notes to make it clear that it relies on JRE 7 SE classes. It sounded to me like it relies on Java 7 language features, which wouldn't be a problem for most Android projects. |
Will add that. |
Thanks! |
That web page claims that the 2.x version should be suitable for Android.
The assertion that I was missing is |
Note that you have to use |
doc issue created : joel-costigliola/assertj#61 |
Using |
We found by way of a few transitive dependencies (assertj-guava:1.2.0) when 2.0.0 was released on Friday a lot of our Android projects stopped working. The File based assertions that were added within the last month aren't going to work on the Dalvik platform as those classes are not available. This will preclude anyone using from assertj in their Android projects from ever moving the 2.x version.
The text was updated successfully, but these errors were encountered: