#633 Method 'ejbCreate' should throw 'javax.ejb.CreateException'

Why does IDEA require the bean implementation to have CreateException in its throws clause
even if the implementation is simple and doesn't throw any exceptions (the home interface of course
has CreateException in its throws clause)?


Timur Zambalayev



2 comments
Comment actions Permalink

Alexey Kudravtsev wrote:

Because EJB spec requires it for CMP Entity Beans.
(http://java.sun.com/products/ejb/docs.html )
See chapter 10.6.4:
The throws clause must define the javax.ejb.CreateException. The throws
clause may define arbitrary application specific exceptions.

But EJB 1.1 specification does not require it.
Chapter 9.2.3:
The throws clause may define arbitrary application specific exceptions,
including the javax.ejb.CreateException.


--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Timur Zambalayev" <invalid@invalid.com> wrote in message
news:ag59rf$i6v$1@is.intellij.net...

>>Why does IDEA require the bean implementation to have CreateException in
>> its throws clause
>>even if the implementation is simple and doesn't throw any exceptions (the
>> home interface of course
>>has CreateException in its throws clause)?
>>
>>
>>Timur Zambalayev

0
Comment actions Permalink

Hello Vladimir,
Will be fixed in #634, thank you for the report.
--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Vladimir Korenev" <v_korenev@mail.ru> wrote in message
news:3D299A7F.2020803@mail.ru...

Alexey Kudravtsev wrote:

Because EJB spec requires it for CMP Entity Beans.
(http://java.sun.com/products/ejb/docs.html )
See chapter 10.6.4:
The throws clause must define the javax.ejb.CreateException. The throws
clause may define arbitrary application specific exceptions.

But EJB 1.1 specification does not require it.
Chapter 9.2.3:
The throws clause may define arbitrary application specific exceptions,
including the javax.ejb.CreateException.

>

>
>

--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

>
>

"Timur Zambalayev" <invalid@invalid.com> wrote in message
news:ag59rf$i6v$1@is.intellij.net...

>
>>Why does IDEA require the bean implementation to have CreateException in
>> its throws clause
>>even if the implementation is simple and doesn't throw any exceptions

(the

>> home interface of course
>>has CreateException in its throws clause)?
>>
>>
>>Timur Zambalayev

>


0

Please sign in to leave a comment.