Closed VahidN closed 1 year ago
Java doesn't consider generics at runtime. So the code we generate also doesn't.
@wasabii
We may need to re-visit this issue IF it is relevant to JavaParser in the JavaToCsharp project!
If we could coordinate, it is important!
Revisit what exactly? IKVM is a JVM implementation, not a language parser.
I'm trying to convert the latest java-parser to a .NET assembly using the following settings:
It compiles fine and produces the output .dll file, but it converts the following code:
To this:
When I decompile the output .dll using the ILSpy, as you can see, its signature is just
Optional
and not the originalOptional<Position>
. Because its generics type info is omitted, it can't be used efficiently. Is there any solution for it?