• Post Reply Bookmark Topic Watch Topic
  • New Topic

RuntimeException in ejb mehtod or no-ejb mehod.

 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
who can explain such question about RuntimeException in ejb mehtod or no-ejb mehod.
code below:
public boolean method_name()
{
try
{
throw new Exception();
}
catch(Exception e)
{
throw new RuntimeException();
}
return true;
}

I found if it's no-ejb's method, compile error message is "statement 'return true;' not reachable"��
but when it's ejb's method,compile pass!?
thanks view.
 
liang sun
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can no one explain?!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!