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\");
Object.getClass().getDeclaredField(\"myfield\");
The only way I see is to iterate over all declared fields and compare the names case-insensitively to the field name you are looking for.