[forge-issues] [JBoss JIRA] (ROASTER-134) MyClassA<String>.MyClassB as returnType isn't working

Thorsten Groß (Jira) issues at jboss.org
Sun Apr 19 05:20:00 EDT 2020


Thorsten Groß created ROASTER-134:
-------------------------------------

             Summary: MyClassA<String>.MyClassB as returnType isn't working
                 Key: ROASTER-134
                 URL: https://issues.redhat.com/browse/ROASTER-134
             Project: Roaster
          Issue Type: Bug
    Affects Versions: 2.21.1.Final
            Reporter: Thorsten Groß
         Attachments: Testcase.java

.addMethod.setReturnType("MyClassA<String>.MyClassB") isn't working. 

The behavior is different and depends on the declaration of the imports. I wrote a small example

TESTCASE1
---------
package com.test;

import MyClassA.MyClassB;

public class Test {

	/**
	 * Expected returntype: MyClassA<String>.MyClassB
	 */
	MyClassB<String> method() {
		return null;
	}
}
TESTCASE2
---------
package com.test;

import com.test.MyClassA;
import com.test.MyClassA.MyClassB;

public class Test {

	/**
	 * Expected returntype: MyClassA<String>.MyClassB
	 */
	MyClassA.MyClassB<String> method() {
		return null;
	}
}




--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the forge-issues mailing list