fasten
fasten copied to clipboard
The id generated for a Java class without any package contains "null"
To Reproduce
Analyze a java class MyClass
with no package: you end up with a JSON containing:
"internalTypes": {"/null/MyClass": {
in the produced JSON.
Expected behavior
I feel that en empty string (so "//MyClass") would make more sense than "null".
I would argue that the correct type for classes in the default package should be /MyClass
.
@ashkboos The issue report is quite old by now... how has the handling been changed in the meantime?
Please make sure that this is not forgotten... please also consider #248 and #260 as all of them are related to FastenURI
s.
@proksch I thought about these issues a lot. All of them are somehow related to the FastenUris design. We can perhaps spend some time and do some workarounds to hide them but I'm not sure it is worth the time. I think a proper solution is as you mentioned an ANTLR-based solution or sth similar.
Can you make an example? Which constructs cannot be expressed in a FastenUri
?