<< Back to previous view

[EL_SPEC-13] TypeConverter API documentation does not match impl. Created: 06/Jun/13  Updated: 06/Jun/13

Status: Open
Project: el-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: dougd Assignee: Unassigned
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

N/A


Tags:
Participants: dougd

 Description   

According to the API documentation all the methods except for "convertToType" are and say exactly what the ELRosolver would do. But the Imp for any of these methods(listed below) do nothing or return null. the

getCommonPropertyType
getFeatureDescriptors
getType
getValue
isReadOnly
setValue

Example:

From the src for getValue

@Override
public Object getValue(ELContext context,
Object base,
Object property) { return null; }

This is what the Javadoc says

public Object getValue(ELContext context,
Object base,
Object property)
Description copied from class: ELResolver
Attempts to resolve the given property object on the given base object.
If this resolver handles the given (base, property) pair, the propertyResolved property of the ELContext object must be set to true by the resolver, before returning. If this property is not true after this method is called, the caller should ignore the return value.

Specified by:
getValue in class ELResolver
Parameters:
context - The context of this evaluation.
base - The base object whose property value is to be returned, or null to resolve a top-level variable.
property - The property or variable to be resolved.
Returns:
If the propertyResolved property of ELContext was set to true, then the result of the variable or property resolution; otherwise undefined.






[EL_SPEC-15] javax.el.BeanELResolver.setValue inconsistent javadoc Created: 12/Jul/13  Updated: 12/Jul/13

Status: Open
Project: el-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: violetagg Assignee: Unassigned
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags:
Participants: violetagg

 Description   

Hi,

EL 3.0 javadoc javax.el.BeanELResolver.setValue describes:

...
If the property exists but does not have a setter, then a PropertyNotFoundException is thrown.
...
PropertyNotWritableException - if this resolver was constructed in read-only mode, or if there is no setter for the property.
...

Can you please clarify which exception should be thrown when the property does not have a setter method?

Thanks
Violeta






[EL_SPEC-16] Static fields and methods are evaluated to null in Facelets Created: 01/Sep/13  Updated: 01/Sep/13

Status: Open
Project: el-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: marfous Assignee: Unassigned
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

GF4.0, JSF2.2


Tags:
Participants: marfous

 Description   

When I use static field or method within Facelet, it's value is evaluated to null.

Example:
#{Integer.MAX_VALUE}
#{Integer.toHexString(16)}

Or this shows in the rendered page that result of the static call was null
#{[0, 1, Integer.MAX_VALUE]}






[EL_SPEC-17] MethodExpression.getMethodInfo() always returns null Created: 12/Dec/13  Updated: 12/Dec/13

Status: Open
Project: el-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Harald Wellmann Assignee: Unassigned
Resolution: Unresolved Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

javax.el-3.0.0.jar standalone, Oracle Java 1.7.0_45 on Linux 64-bit


Tags:
Participants: Harald Wellmann

 Description   

When invoking getMethodInfo() on a method expression, I always get null.

This seems to be caused by AstValue.getMethodInfo():

public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
            throws ELException {
        Target t = getTarget(ctx);
        if (t.isMethodCall()) {
            return null;
        }
        Object property = t.suffixNode.getValue(ctx);
        Method m = ReflectionUtil.getMethod(t.base, property, paramTypes);
        return new MethodInfo(m.getName(), m.getReturnType(), m
                .getParameterTypes());
    }

Shouldn't this be

if ( ! t.isMethodCall()) {
    return null;
}





Generated at Sun Apr 20 22:49:37 UTC 2014 using JIRA 4.0.2#472.