Using tools 3.1.0.beta4 and j2sdk1.4.2_09.
In reverse engineering db2 tables from the 400 the hashcode() method created has casting errors - casting from boolean to int.
This happens in the tablenameID.java class which comprises the composite-id.
partial stack trace:
Code:
[javac] C:\eclipse\workspace\dbFramework\src\com\eaidbmodel\tones\sdltndata\Obstq900Id.java:603: inconvertible types
[javac] found : boolean
[javac] required: int
[javac] result = 37 * result + (int) this.isSTCLP();
[javac] ^
[javac] C:\eclipse\workspace\dbFramework\src\com\eaidbmodel\tones\sdltndata\Obstq900Id.java:603: incompatible types
[javac] found : java.lang.String
[javac] required: int
[javac] result = 37 * result + (int) this.isSTCLP();
[javac] ^
[javac] 20 errors
BUILD FAILED
C:\eclipse\workspace\dbFramework\build.xml:123: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Total time: 34 seconds
How do I overcome the casting exceptions? Tweak the template?