Comment to warn future folks to check Apex compiler implementation first
This commit is contained in:

committed by
Juan Martín Sotuyo Dodero

parent
edabb22f37
commit
79121c42cc
@@ -96,6 +96,11 @@ public class ApexOpenRedirectRule extends AbstractApexRule {
|
||||
}
|
||||
} else {
|
||||
if (node instanceof ASTField) {
|
||||
/* sergey.gorbaty:
|
||||
* Apex Jorje parser is returning a null from Field.getFieldInfo(), but the info is available from an inner field.
|
||||
* DO NOT attempt to optimize this block without checking that Jorje parser actually fixed its bug.
|
||||
*
|
||||
*/
|
||||
try {
|
||||
final Field f = node.getNode().getClass().getDeclaredField("fieldInfo");
|
||||
f.setAccessible(true);
|
||||
|
Reference in New Issue
Block a user