Issue Details (XML | Word | Printable)

Key: CSC-639
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Patrik Nordwall
Reporter: Jörg Reichert
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fornax Cartridge Sculptor

"url" is now keyword, used as attribute on a entity fails the generator

Created: 28/Mar/11 04:57 PM   Updated: 28/Mar/11 08:26 PM
Component/s: Generator
Affects Version/s: 2.0.0
Fix Version/s: 2.1.0

Time Tracking:
Not Specified


 Description  « Hide
migrated project to Sculptor 2.0.0.5 (also the DSL Editor Plugin). In the model there were an entity containing a String attribute "url".

The generator fails at toFirstUpper in GeneratorHelper.java with a NPE (I think toFirstLower is analogous).

When the entity has no repository defined the GeneratorHelper.getRepositoryName fails with a NPE, too.

Renaming the attribute to uhrl fixes all problems.

The editor whether shows "url" (without annotations) as highlighted keyword nor marks an validation error.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Patrik Nordwall added a comment - 28/Mar/11 08:26 PM
We have added a few new keywords in the DSL, e.g. url. If you get a naming conflict with your existing names you can prefix it with ^, e.g. ^url.

Added that description in the migration guide.