[
https://issues.jboss.org/browse/ROASTER-102?page=com.atlassian.jira.plugi...
]
Niklas Rammerstorfer updated ROASTER-102:
-----------------------------------------
Description:
I have an interface
{code:java}
public interface MyInterface
{
interface Callback{
// Some methods.
}
}
{code}
and a class MyGeneratedClass
Now I want to implement the Callback interface in MyClass, so I use
{code:java}
myGeneratedClass.addInterface(Class.forName("MyInterface$Callback");
{code}
I use a $ because in Java inner classes/interfaces are called via $ instead of .
Now instead of the expected:
{code:java}
public class MyGeneratedClass implements MyInterface.Callback{}
{code}
I get:
{code:java}
public class MyGeneratedClass implements MyInterface$Callback{}
{code}
Summary: Bug when trying to implement an inner interface. (was: I have a
class called MyClass)
Environment: IDE: IntelliJ 15.3
Affects Version/s: 2.18.6.Final
Bug when trying to implement an inner interface.
------------------------------------------------
Key: ROASTER-102
URL:
https://issues.jboss.org/browse/ROASTER-102
Project: Roaster
Issue Type: Bug
Components: API, Formatter
Affects Versions: 2.18.6.Final
Environment: IDE: IntelliJ 15.3
Reporter: Niklas Rammerstorfer
I have an interface
{code:java}
public interface MyInterface
{
interface Callback{
// Some methods.
}
}
{code}
and a class MyGeneratedClass
Now I want to implement the Callback interface in MyClass, so I use
{code:java}
myGeneratedClass.addInterface(Class.forName("MyInterface$Callback");
{code}
I use a $ because in Java inner classes/interfaces are called via $ instead of .
Now instead of the expected:
{code:java}
public class MyGeneratedClass implements MyInterface.Callback{}
{code}
I get:
{code:java}
public class MyGeneratedClass implements MyInterface$Callback{}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)