Community
Participate
Working Groups
Build Identifier: v20110715906 TranslationUnit unit = new TranslationUnit(null, file.getName(), "test", file.toURI()); //$NON-NLS-1$ For the constructor above, the translationunit is not parsing the file, the content is always empty. It can be fixed if you replace the public char[] getContents() { return new char[0]; } with public char[] getContents() { getCodeReader.buffer; } Reproducible: Always Steps to Reproduce: 1.Try to invoke the TranslationUnit constructor as mentioned above after setting up the path. 2. Even the test cases TranslationUnitTests fail 3.
Assuming this will not be fixed.