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 224204 - [73cat] broken goto declaration + misleading error hint
Summary: [73cat] broken goto declaration + misleading error hint
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-24 21:37 UTC by muellermi
Modified: 2013-07-12 12:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (63.12 KB, text/plain)
2012-12-24 21:38 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2012-12-24 21:37:45 UTC
Product Version = NetBeans IDE Dev (Build 201212220001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_10
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04

given a bean "AdminController" with a method
public String addReview(int bookId, Language lang) {
...
}

This method is referred from a JSF page
<h:commandLink action="#{adminController.addReview(book.id, 'de')}" ... />

This is legal code and it's working properly. But  
- NetBeans alerts "unknown property addReview" 
- placing the caret onto addReview and pressing Ctrl-B does not work.

NetBeans must 
- recognize addReview as a method (not as property)
- goto declaration
Comment 1 muellermi 2012-12-24 21:38:33 UTC
Created attachment 129675 [details]
IDE log
Comment 2 Martin Fousek 2013-01-03 08:46:07 UTC
Thanks muellermi for reporting.

How do you converts your 'de' string to the Language class? Ideally could you attach whole sample project you were trying? Thanks...
Comment 3 Marek Fukala 2013-01-08 13:59:41 UTC
As Martin pointed out, there's a problem with matching the method according to its signature, both problems (false error + the malfunctioning goto declaration) are the effect.
Comment 4 Martin Fousek 2013-05-03 10:02:03 UTC
muellermi please could you help us and provide information requested in comment#2? Thanks a lot.
Comment 5 Martin Fousek 2013-07-12 12:46:55 UTC
Muellermi please could you comment to the comment #2 and reopen the issue then? We have to know your way how is the string mapped to the Language class in the runtime to be able to support this within the JSF editor. Thanks a lot in advance.