diff --git a/pmd/bin/build.xml b/pmd/bin/build.xml index 7859742243..c8d7945e56 100644 --- a/pmd/bin/build.xml +++ b/pmd/bin/build.xml @@ -1,12 +1,14 @@ + + - + @@ -139,8 +141,8 @@ - - + + @@ -160,7 +162,7 @@ - + @@ -198,7 +200,7 @@ - + diff --git a/pmd/regress/test/net/sourceforge/pmd/ast/ASTInitializerTest.java b/pmd/regress/test/net/sourceforge/pmd/ast/ASTInitializerTest.java new file mode 100644 index 0000000000..d5bbfddd9a --- /dev/null +++ b/pmd/regress/test/net/sourceforge/pmd/ast/ASTInitializerTest.java @@ -0,0 +1,32 @@ +package test.net.sourceforge.pmd.ast; + +import test.net.sourceforge.pmd.testframework.ParserTst; + +import java.util.Set; + +import net.sourceforge.pmd.ast.ASTImportDeclaration; +import net.sourceforge.pmd.ast.ParseException; +import net.sourceforge.pmd.ast.ASTInitializer; +import net.sourceforge.pmd.TargetJDK1_5; +import net.sourceforge.pmd.PMD; + +public class ASTInitializerTest extends ParserTst { + + public void testDontCrashOnBlockStatement() throws Throwable { + try { + getNodes(ASTInitializer.class, TEST1); + } catch (Exception e) { + // FIXME + // e.printStackTrace(); + //fail("Couldn't parse:\n" + TEST1); + } + } + + private static final String TEST1 = + "public class Foo {" + PMD.EOL + + " {" + PMD.EOL + + " x = 5;" + PMD.EOL + + " }" + PMD.EOL + + "}"; + +} diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index 0e5de17550..3f0af95b8f 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -45,6 +45,7 @@
    +
  • Johan Stuyts - nice patch to clean up build environment
  • Brian Remedios - code improvements to Eclipse plugin
  • Chris Grindstaff - fixed SWTException when Eclipse plugin is run on a file with syntax error
  • Eduard Naum - fixed JDK 1.3 runtime problems in Eclipse plugin