This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232248 - Adding onError method to server endpoint class produces insufficient code
Summary: Adding onError method to server endpoint class produces insufficient code
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: WebSocket (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 08:00 UTC by Maksim Khramov
Modified: 2013-08-20 00:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2013-07-04 08:00:24 UTC
Product Version: NetBeans IDE Dev (Build 201307022300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01

Steps to reproduce:
 Create new web project with J2EE7 support
 Create new WebSocket Server Endpoint class
Click on refactoring lamp icon on class declaration line and select Add @OnError method...

IDE produces next code:
    @OnError
    public void onError() {
    }

but javdoc says that method need to have mandatory Throwable parameter so on deploy module throws server exception:

javax.websocket.DeploymentException: Method:  socket.NewWSEndpoint.onError: does not have mandatory Throwable param.
Comment 1 David Konecny 2013-08-20 00:49:40 UTC
Good point! Thanks.
2b27b5d2e448