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.
the ide sees a problem where there is no problem(excerpts from forum) [1] How do I correct this? netbeans editor reports error: Catch statement parameter type is not a subclass of Throwable def newPost = postService.createPost(params.id, params.content) flash.message = "Added new post: ${newPost.content}" } catch (PostException pe) { flash.message = pe.message } redirect(action: 'timeline', id: params.id) } } [2] I've seen this before, but only from an IDE - since the error is spurious (PostException extends RuntimeException which definitely extends Throwable!). Running from the commandline will fix the issue. Is it from IntelliJ or Netbeans or Eclipse? Thanks, Glen. [3] The code that caused this: package com.grailsinaction class PostController { def postService def scaffold = true def timeline = { def user = User.findByUserId(params.id) [ user : user ] } def addPost = { try { def newPost = postService.createPost(params.id, params.content) flash.message = "Added new post: ${newPost.content}" } catch (PostException pe) { flash.message = pe.message } redirect(action: 'timeline', id: params.id) }
This was fixed during the rewrite to CSL.
Colleagues, Please cf. http://www.manning-sandbox.com/thread.jspa?threadID=30235&tstart=0 and post dated May 9, 2009 9:03 PM The respective problem needs to be revisited. The original anomaly has been encountered on a newer version of Netbeans. Thank you for an excellent product. The IDE is an excellent tool. Respectfully, berean1155 Product Version: NetBeans IDE Dev (Build 200904011705) Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 System: Linux version 2.6.27.9-73.fc9.i686 running on i386; UTF-8; en_US (nb) Userdir: /home/Stephen.Davis/.netbeans/6.7m3
*** This issue has been marked as a duplicate of 161176 ***