Comment to warn future folks to check Apex compiler implementation first

This commit is contained in:
Sergey
2017-01-12 14:44:59 -08:00
committed by Juan Martín Sotuyo Dodero
parent edabb22f37
commit 79121c42cc

View File

@@ -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);