-
Bug
-
Resolution: Done
-
Medium
-
None
The following model
module foo { namespace foo; prefix foo; list string { leaf name { type string { length 1..32; } } } }
generates code which does not compile because:
[target/test/src/mdsalXXX/org/opendaylight/yang/gen/v1/foo/norev/StringBuilder.java:99: error: cannot find symbol final int length = value.codePointCount(0, value.length()); ^ symbol: method length() location: variable value of type org.opendaylight.yang.gen.v1.foo.norev.String, target/test/src/mdsalXXX/org/opendaylight/yang/gen/v1/foo/norev/StringBuilder.java:108: error: incompatible types: java.lang.String cannot be converted to org.opendaylight.yang.gen.v1.foo.norev.String check_nameLength(value); ^, Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output]