-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassName is not a valid Java identifier #70
Comments
Can you please provide a pull request ? And possibly include a unit test as well that clearly shows the abnormal behavior ? |
It occured when I add property 'org.exolab.castor.builder.automaticConflictResolution=true' to resolve class name conflict.The following is the error log:
Due to the development environment, I commited several times, but the last one 'a57c621' is useful. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a problem about the classname!
In the model castor-codegen of org.exolab.castor.builder.conflict.strategy.BaseClassNameConflictResolver.calculateXPathPrefix,
in some cases, when the input is like '/Voucher{http://www.your.org/Test/Space}/Name/Surname', but the output is 'WwwYourOrgTestSpace}NameSurname'.This is not a valid java identifier.
the source code below split the input string words, but not remove the invalid identifier in model castor-xml(org.castor.xml.JavaNamingImpl)
fix:
add some code to remove "}" in model castor-xml(org.castor.xml.JavaNamingImpl)
The text was updated successfully, but these errors were encountered: