Hi together,
the original validation code has no reflection emulation for accessing getters.
In gwt-bean-validators you can simply use
org.apache.commons.beanutils.PropertyUtils.getProperty(Object, String) and
org.apache.commons.beanutils.BeanUtils.getProperty(Object, String) which both
throw NoSuchMethodException on client side.
Without this emulation I wouldn't be able use validation routines which need
more input fields like MustBeEqual (
https://gitlab.com/ManfredTremmel/gwt-bean-validators/blob/master/mt-bean-validators/src/main/java/de/knightsoftnet/
validators/shared/impl/MustBeEqualValidator.java).
cu
Manfred
> > urce/org/apache/commons/beanutils/PropertyUtils.java' [INFO]
> > [ERROR] Line 56: No source code is available for type
> > java.lang.NoSuchMethodException; did you forget to inherit a required
> > module?
> > [INFO] Tracing compile failure path for type
> > 'de.knightsoftnet.validators.shared.util.BeanPropertyReaderUtil'
> > [INFO] [ERROR] Errors in
> > 'jar:file:/home/dnouls/.m2/repository/de/knightsoft-net/mt-bean-validators
> > /1.0.0/mt-bean-validators-1.0.0.jar!/de/knightsoftnet/validators/shared/ut
> > il/BeanPropertyReaderUtil.java' [INFO] [ERROR] Line 60: No source
> > code is available for type java.lang.NoSuchMethodException; did you
> > forget to inherit a required module?
> > [INFO] Tracing compile failure path for type 'java.net.URL'
> > [INFO] [ERROR] Errors in
> > 'jar:file:/home/dnouls/.m2/repository/de/knightsoft-net/gwt-bean-validator
> > s/1.0.0/gwt-bean-validators-1.0.0.jar!/de/knightsoftnet/validators/superso
> > urce/java/net/URL.java' [INFO] [ERROR] Line 958: No source code
> > is available for type java.lang.NoSuchMethodException; did you forget to
> > inherit a required module?
> > [INFO] Tracing compile failure path for type
> > 'org.hibernate.validator.internal.util.logging.Log'
> > [INFO] [ERROR] Errors in
> > 'jar:file:/home/dnouls/.m2/repository/de/knightsoft-net/gwt-bean-validator
> > s/1.0.0/gwt-bean-validators-1.0.0.jar!/de/knightsoftnet/validators/superso
> > urce/org/hibernate/validator/internal/util/logging/Log.java' [INFO]
> > [ERROR] Line 415: No source code is available for type
> > java.lang.NoSuchMethodException; did you forget to inherit a required
> > module?
> > [INFO] Tracing compile failure path for type
> > 'de.knightsoftnet.validators.client.impl.AbstractGwtValidator'
> > [INFO] [ERROR] Errors in
> > 'jar:file:/home/dnouls/.m2/repository/de/knightsoft-net/gwt-bean-validator
> > s/1.0.0/gwt-bean-validators-1.0.0.jar!/de/knightsoftnet/validators/client/
> > impl/AbstractGwtValidator.java' [INFO] [ERROR] Line 144: No
> > source code is available for type java.lang.NoSuchMethodException; did
> > you forget to inherit a required module?
> > [INFO] Tracing compile failure path for type
> > 'org.apache.commons.beanutils.BeanUtils'
> > [INFO] [ERROR] Errors in
> > 'jar:file:/home/dnouls/.m2/repository/de/knightsoft-net/gwt-bean-validator
> > s/1.0.0/gwt-bean-validators-1.0.0.jar!/de/knightsoftnet/validators/superso
> > urce/org/apache/commons/beanutils/BeanUtils.java' [INFO] [ERROR]