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 249438

Summary: @Named on a class with two uppercase letters resolved to a wrong el expression in jsf editor
Product: javaee Reporter: opensolutions <opensolutions>
Component: JSFAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description opensolutions 2014-12-18 19:14:32 UTC
On a class like this:

@Named
public class ICtest

The code completion in netbeans jsf editor view will show you

#{iCtest}

but it has to be

#{ICtest}

upper case IC

why:

...to support the occasional use of all upper-case names, we check if the first two characters of the name are both upper case and if so leave it alone. So for example, “FooBah” becomes “fooBah” “Z” becomes “z” “URL” becomes “URL” We provide a method Introspector.decapitalize which implements this conversion rule.

http://stackoverflow.com/questions/19414709/cant-find-named-cdi-bean-with-default-name-in-el-facelet
Comment 1 Petr Hejl 2015-07-03 12:59:56 UTC
Fixed in web-main 79322105a333.
Comment 2 Quality Engineering 2015-07-04 02:08:59 UTC
Integrated into 'main-silver', will be available in build *201507040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/79322105a333
User: Petr Hejl <phejl@netbeans.org>
Log: #249438 - @Named on a class with two uppercase letters resolved to a wrong el expression in jsf editor