[weld-dev] Proxyability of private methods

Marius Bogoevici marius.bogoevici at gmail.com
Wed Mar 31 15:45:12 EDT 2010


Hi,

Looking at: http://www.seamframework.org/Community/ScalaJSF20OnJboss6DeploymentError - the discussion originated in a Scala issue, but, in a more general way, a class like this:

@SessionScoped
public class ElusiveClass
{

	public void publicBehaviour() {}
	private final privateBehaviour() {}

}

is not proxyable, according to 5.4.1. I wonder if it makes sense to change this in a future revision of the spec, by saying that a proxyable class must not have final methods, *except for the private ones*.

I don't think that relaxing the conditions in this way would undermine the intent of 5.4.1 as it stands now, since those methods cannot be overridden/proxified anyway.

WDYT?

Marius





More information about the weld-dev mailing list