Bug #31
Generator produces invalid java for attribute names containing "-"
| Status: | Closed | Start: | 11/02/2009 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assigned to: | Jonathan Clarke | % Done: | 100% |
|
| Category: | Core | |||
| Target version: | 1.1.0 | |||
| Problem in version: |
Description
As reported by Clément (http://lists.lsc-project.org/pipermail/lsc-users/2009-February/000022.html), when generating the objectclass "user" from AD, methods containing a "-" are created. Javac complains:
lsc::compile-app:
[javac] Compiling 5 source files to
/home/clement/Programmes/lsc-xxx-openldap2ad/target/classes
[javac]
/home/clement/Programmes/lsc-xxx-openldap2ad/src/impl/java/org/lsc/beans/userBean.java:772:
'(' expected
[javac] public static void generateMS-DS-CreatorSID(user soc,
IBean doc) throws NamingException {
[javac]
^
[javac]
/home/clement/Programmes/lsc-xxx-openldap2ad/src/impl/java/org/lsc/objects/flat/fUser.java:150:
';' expected
[javac] private String
mS-DS-CreatorSID;
[javac]
^
Related issues
| related to Feature #33: Support attribute names containing a "-" character | Closed | 08/09/2009 | 08/09/2009 |
History
Updated by Sébastien Bahloul over 1 year ago
- Status changed from New to Assigned
- Assigned to set to Sébastien Bahloul
I take it.
Updated by Jonathan Clarke over 1 year ago
- Status changed from Assigned to Feedback
- Assigned to changed from Sébastien Bahloul to Jonathan Clarke
- % Done changed from 0 to 100
Just commited a workarond for this issue. Attributes containing a "-" character in their names are now ignored and a warning is logged.
Clément, can you test please?
Support for using such attributes will not be added for 1.1. I will create a feature request for 1.2.
Updated by Jonathan Clarke over 1 year ago
- Status changed from Feedback to Closed
Just tested this again, and the Java code generated is now valid, although missing attributes containing "-" in their names.