I think for 3.0 that it's time to dump cgen 1.1, or at least change
1.2 to be the default generator.
Our original roadmap was to keep 1.1 for 1.2, change to 1.2 as the
default for 1.3, and remove 1.1 at ?.
On 9/1/06, Andrus Adamchik (JIRA) <jir..pache.org> wrote:
> 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 : Tue Sep 12 2006 - 13:54:26 EDT