when using JavaType with inner classes (e.g. as field type or method param) there are some issues.
First the simple-name contains the $ from class.getName()
I fixed that with
simpleTypeName = fullyQualifiedTypeName.substring(offset+1).replace('$','.');
in JavaType line 115.
one issue that is still open is the handling of inner classes by the import resolver