timowest / scalagen

Java to Scala transformation
Apache License 2.0
216 stars 32 forks source link

Update JavaParser #83

Closed nightscape closed 7 years ago

nightscape commented 7 years ago

This PR updates JavaParser to version 2.5.1 which has support for Java 8. Atm the tests are failing and there is no support for Java 8 features like lamdas or diamonds. I'm just putting this out here so in case I don't get to finish it someone hopefully can take over :wink:

nightscape commented 7 years ago

Ok, the tests are green now. I didn't and probably won't have time to implement the functionality to transform Java 8 syntax to Scala, but it's at least half-way there.

The stuff that would need to be implemented in order to allow Java 8 transformation is implemented as = ???, so you should get a NotImplementedError when it gets called.

From my point of view, it makes sense to merge this PR, as it is a prerequisite for adding Java 8 support and doesn't break anything (and I don't want to have spent the time in vain :wink:)

nightscape commented 7 years ago

Superseded by https://github.com/timowest/scalagen/pull/84