Class generator - incorrect java types for classes like java.lang.whatever.XYZ
------------------------------------------------------------------------------
Key: CAY-646
URL: http://issues.apache.org/cayenne/browse/CAY-646
Project: Cayenne
Type: Bug
Components: Cayenne Core Library
Versions: 1.2 [STABLE], 2.0 [STABLE], 3.0
Reporter: Andrus Adamchik
Assigned to: Andrus Adamchik
Priority: Trivial
Fix For: 3.0
When a java type of an attribute starts with "java.lang" and contains at least 3 parts in the package path, "java.lang." is incorrectly stripped during class generation (1.1 variety). E.g. the last line fails in this test:
public void testFormatJavaType() {
ClassGenerationInfo info = new ClassGenerationInfo();
assertEquals("x.X", info.formatJavaType("x.X"));
assertEquals("X", info.formatJavaType("java.lang.X"));
assertEquals("java.lang.x.X", info.formatJavaType("java.lang.x.X"));
}
Looks like 1.2 generator is free from this problem.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/cayenne/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Fri Sep 01 2006 - 17:47:20 EDT