gharley (3) [Avatar] Offline
#1
Hi,

Spotted a couple of what I *think* are errors in chapter 3.
Apologies if they have been raised previously :-

1. In the Java code for the addChildCategory() method ate
the top of page 71. The second last line reads

> childCategory.getParentCategory(this);

I believe it *should* be

> childCategory.setParentCategory(this);

---

2. On page 72, the second sentence after listing 3.2 reads
:-

> We add the collection attribute, the standard accessor
methods, and a method that simplifies relationship
management (listing 3.3).

Surely this ought to read :-

> We add the categories attribute, the standard accessor
methods, and a method that simplifies relationship
management (listing 3.3).

---

That's all. I am very impressed with what I have read of
the book so far.

Best regards,
George
mengho (1) [Avatar] Offline
#2
Re: Chapter 3 ; Error in code listings
Ya, I think the code is really got some problem originally, I agree with you.

Mark