I have an Eclipse project that I must build under Java 1.4. In other words, I need to avoid using Java generics.
Project -> Properties -> Java Compiler -> JDK Compliance -> Compiler Compliance Level: 1.4
I have Class A and Class B. When I create a relationship where Class A has-a (Composition) Class B, and I set the cardinality to *, Green generates List<Class B> class B inside of Class A.
Eclipse complains, saying "Syntax error, parameterized types are only available if source level is 5.0" Eclipse recommends that I change my compiler compliance level to 5.0, but what I really need to do is use a data type that is not generic so that I can compile under Java 1.4.
I filed this as a bug, rather than a feature request, since I did not expect Green to generate code that cannot compile, given my project settings.
Log in to post a comment.