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 253605 - EL-Expression calling a method with enum literal marked with warning "Unknow Method"
Summary: EL-Expression calling a method with enum literal marked with warning "Unknow ...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 08:28 UTC by softmetz
Modified: 2015-07-30 01:25 UTC (History)
0 users

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 softmetz 2015-07-21 08:28:46 UTC
In a bean I have a method "foo(BarEnum barEnum)" that takes an Enum as parameter. In a facelet I call this method in an EL-Expression passing the Enum value as single quoted String:

#{bean.foo('FOOBAR')}

Netbeans marks the method call as warning and states "Unknown method "foo".

JSF (MyFaces works as expected and maps the String to the Enum value.
Comment 1 Petr Hejl 2015-07-29 15:19:17 UTC
Fixed in web-main 8f612e8f3ede.
Comment 2 Quality Engineering 2015-07-30 01:25:10 UTC
Integrated into 'main-silver', will be available in build *201507300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8f612e8f3ede
User: Petr Hejl <phejl@netbeans.org>
Log: #253605 - EL-Expression calling a method with enum literal marked with warning "Unknow Method"