• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ doubt

 
Nishant Dhar
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 355

the bang box mentions that I get an exception if type= Foo.Employee and class is Foo.person

does it actually mean an exception or a compile time error.
I think we should get a compile time error since the compilation rules are violated.
correct me if iam wrong !!

nishant
 
Cai DongShan
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right. The servlet won't be generated.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic