Richard Kosegi created ROASTER-95:
-------------------------------------
Summary: Roaster can't correctly handle Guava's ListMultimap
Key: ROASTER-95
URL:
https://issues.jboss.org/browse/ROASTER-95
Project: Roaster
Issue Type: Bug
Affects Versions: 2.18.2.Final
Reporter: Richard Kosegi
I tried to generate source of interface which should have single method:
{{
com.google.common.collect.ListMultimap<java.lang.Integer,poc.test.Test3> getMap();
}}
I used following code to achieve this:
{{JavaInterfaceSource ifSource = Roaster.create(JavaInterfaceSource.class);
ifSource.setPackage("poc.test.bug");
ifSource.addMethod().setReturnType("com.google.common.collect.ListMultimap<java.lang.Integer,poc.test.Test3>").setName("getMap");
System.out.println(ifSource.toString());
}}
This code yields following output:
package poc.test.bug;
{{
import com.google.common.collect.ListMultimap;
public interface JavaInterface {
ListMultimap<Test3> getMap();
}
}}
But it should be:
{{package poc.test.bug;
import com.google.common.collect.ListMultimap;
import poc.test.Test3;
public interface JavaInterface {
ListMultimap<Integer, Test3> getMap();
}
}}
Mentioned type "Test3" has following form:
{{
package poc.test;
public class Test3 {
}
}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)