submitter report :
=======================
I have an simple interface within an another interface and trying to get the
getGenericReturnType for the method but it is returning the wrong value.
1) LongArray.java
package com.test;
public interface LongArray<V> {
public Iterator<V> iterator();
interface Iterator<V> {
}
}
2) Class2.java
package com.test;
public interface LongArray<V> {
public Iterator<V> iterator();
interface Iterator<V> {
}
}
Output
=========
Method Generic Return Type: com.test.LongArray.com.test.LongArray$Iterator
Javap output
==========
javap LongArray Warning: Binary file LongArray contains com.test.LongArray
Compiled from "LongArray.java"
public interface com.test.LongArray<V> {
public abstract com.test.LongArray$Iterator<V> iterator();
}
According to javap output, it should return "com.test.LongArray$Iterator" but
it is returning "com.test.LongArray.com.test.LongArray$Iterator".