scalagen icon indicating copy to clipboard operation
scalagen copied to clipboard

Java to Scala transformation

Results 21 scalagen issues
Sort by recently updated
recently updated
newest added

How to make a complete conversion from Scala to java?

The latest version is much more stable and has support for Java 9. https://github.com/javaparser/javaparser/

/cc @timowest @nightscape hello. I'm currently working on Scala-Native and we have a lot of java code to port from java to scala. I would like to spend some time...

**Java Code:** ``` private final static Map props = new LinkedHashMap(); final Set propSet = props.keySet(); StringBuilder newString = new StringBuilder(); for (String prop : propSet) { if (newString.length() >...

Hi @timowest, I've dug much deeper than I initially planned and made quite some changes to scalagen, but I hope they pay off: - I replaced the Maven build by...

I'm getting the following error trying to use the [scalagen_2.10.1](https://github.com/timowest/scalagen/blob/0_3_2/scalagen/pom.xml) module via gradle. When I add this dependency I see this error: ``` org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.MetaDataParseException: inconsistent module metadata found. Descriptor: com.mysema.scalagen:scalagen_2.9.3:0.3.2...

Scalagen cannot Convert program like this: ``` java import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.List; public class Java8CompareClient { public static void main(String[] args) { List srcList...

MIN_VALUE/MinValue should be good candidates for a translation too.

original code: `private BigMoney with(BigDecimal newAmount) {` generated: ` private def with(newAmount: BigDecimal): BigMoney = {` should be: ` private def `with`(newAmount: BigDecimal): BigMoney = {`

original code: `assert currency != null : "Joda-Money bug: Currency must not be null";` generated code: ` assert(currency != null) : "Joda-Money bug: Currency must not be null"` it's definitely...