Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiler complaints in abstract class  RSS feed

 
Magnus Stattin
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will the compiler complain with an error if you do not include the the methods from the javax.ejb.EntityBean in an CMP? i.e ejbLoad, ejbStore...
As the bean class in a CMP is abstract wouldn't it make it through compilation and fail at deployment instead?
The sharpen your pencil exercise on page 319 got me thinking about this.
/Magnus
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the bean class in a CMP is abstract wouldn't it make it through compilation and fail at deployment instead?

You're right.
Best,
Phil.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!