Steps to reproduce:
- Go to /xwiki/bin/view/XWiki/XWikiClasses
- Create a class named "Test"
- Add a class property to TestClass named foo__bar (note the double underscores)
- Save and view the class
Expected results: The property should be listed as
Actual results: The property is listed as
See the attached screenshots.
This bug is a real problem for PhenoTips, which frequently uses double underscores in property names.