Error flagged in auto-gen'd code

Using: Build 1019
OS: Windows XP Professional

The editor flags an error in code stubs that are auto-created using the
Implement Methods... (CTRL+I) tool.

Step 1: Create a new class FooBean
Step 2: Open FooBean in the editor and have it implement
javax.ejb.MessageDrivenBean

The editor will now warn you that the class must be abstract since methods
in the j.e.MDBean haven't been implemented.

Step 3: CTRL+I and select all the methods (onMessage,
setMessageDrivenContext, ejbRemove)

The editor will place skeleton implementations of these methods. The method
signature for the last two correctly have the "throws EJBException" clause.

However the markers on the gutters indicate that the exception should be
java.lang.Throwable.

That is not correct. Am I missing something?

Sri


Please sign in to leave a comment.