VariableDeclarationFragment node resolveBindind() returns null in eclipse/jdt/ast

This happens because of the following from the setResolveBindings docs: Binding information is obtained from the Java model. This means that the compilation unit must be located relative to the Java model. This happens automatically when the source code comes from either setSource(ICompilationUnit) or setSource(IClassFile). When source is supplied by setSource(char[]), the location must be … Read more

Eclipse + Java 8 support?

For Kepler SR2 (4.3.2) a feature patch needs to be installed in order to get JAVA 8 support. Follow these steps: Eclipse – Help (MENU) > Install New Software… enter the following URL into the ‘Work with’ field: http://download.eclipse.org/eclipse/updates/4.3-P-builds/ press ‘Enter’ select category ‘Eclipse Java 8 Support (for Kepler SR2)’ click ‘Next’ click ‘Next’ accept … Read more