-
Bug
-
Resolution: Done
-
Major
-
2.1.3
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
Workaround Exists
-
Mention a Class instance literal by name and Byteman goes duh? For example if you specify
BIND
config:org.hibernate.validator.HibernateValidatorConfiguration = javax.validation.Validation.byProvider(HibernateValidator.class).configure();
tmp:javax.validation.ValidatorFactory = config.buildValidatorFactory();
Byetman will throw the following type error
stdOut: org.jboss.byteman.rule.exception.TypeException: FieldExpression.typeCheck : invalid path HibernateValidator to static field class file . . .
(n.b. that should probably read 'to static field "class" file ...'). In other words even though Byteman knows that the path prefix to ".class" is a static type reference it thinks the ".class" term at the end denotes a static field access. So, mentions of .class need checking for as a special case.
n.b. the obvious case is where ".class" terminates the expression but it will also be necessary to deal with the case where a method of the Class instance is invoked.