Let's say I have a class with a string field named "myfield", and use reflection to get the field, I've found that Object.getClass().getDeclaredField("myfield");
is case sensitive, it will throw an NoSuchFieldException
if I for example use Object.getClass().getDeclaredField("MyField");
Is there any way around it? forcing it to ignore case?
Thanks