Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-10
-
None
-
None
-
Win XP - Jdk 1.5
Description
I am getting some inconsistencies with type checking. Why does this code throw an exception:
p = new Person()
p.name="Dave Ford"
p.age="eee"
But this code doesn't:
p = new Person(name:"Dave Ford",age:"ee")
Here is the class I'm using:
class Person {
String name
Integer age
}