Merge branch 'pr-119'

This commit is contained in:
Andreas Dangel
2016-10-30 19:22:53 +01:00
3 changed files with 13 additions and 0 deletions

View File

@ -917,6 +917,8 @@ void Skip2NextTerminator(String initiator,String terminator) :
t = getToken(1); t = getToken(1);
if(t.image.equals(initiator)) count++; if(t.image.equals(initiator)) count++;
if(t.image.equals(terminator)) count--; if(t.image.equals(terminator)) count--;
if(null != t.specialToken || t.kind == EOF)
return;
} }
} }
{ {

View File

@ -36,4 +36,12 @@ public class PLSQLParserTest extends AbstractPLSQLParserTst {
+ " doSomethingElse;" + " doSomethingElse;"
+ "END;"); + "END;");
} }
@Test(timeout = 5000)
public void testBug1531() {
parsePLSQL(
"create or replace force view oxa.o_xa_function_role_types as\n" +
"select \"CFT_ID\",\"CFR_ID\",\"CFT_NAME\",\"TCN\",\"LOG_MODULE\",\"LOG_USER\",\"LOG_DATE\",\"LOG_TIME\" from crm_function_role_types\n" +
"/");
}
} }

View File

@ -23,6 +23,7 @@
* [#116](https://github.com/pmd/pmd/pull/116): \[core] \[java] Improve collection usage * [#116](https://github.com/pmd/pmd/pull/116): \[core] \[java] Improve collection usage
* [#117](https://github.com/pmd/pmd/pull/117): \[java] Improve symboltable performance * [#117](https://github.com/pmd/pmd/pull/117): \[java] Improve symboltable performance
* [#118](https://github.com/pmd/pmd/pull/118): \[java] Simplify VariableDeclaratorId parsing * [#118](https://github.com/pmd/pmd/pull/118): \[java] Simplify VariableDeclaratorId parsing
* [#119](https://github.com/pmd/pmd/pull/119): \[plsql] Fix PMD issue 1531- endless loop followed by OOM while parsing (PL)SQL
**Bugfixes:** **Bugfixes:**
@ -41,6 +42,8 @@
* [#1534](https://sourceforge.net/p/pmd/bugs/1534/): \[java] CloneMethodMustImplementCloneable: ClassCastException with Annotation (java8) * [#1534](https://sourceforge.net/p/pmd/bugs/1534/): \[java] CloneMethodMustImplementCloneable: ClassCastException with Annotation (java8)
* java-typeresolution/SignatureDeclareThrowsException * java-typeresolution/SignatureDeclareThrowsException
* [#1535](https://sourceforge.net/p/pmd/bugs/1535/): \[java] SignatureDeclareThrowsException: ClassCastException with Annotation * [#1535](https://sourceforge.net/p/pmd/bugs/1535/): \[java] SignatureDeclareThrowsException: ClassCastException with Annotation
* PLSQL
* [#1531](https://sourceforge.net/p/pmd/bugs/1531/): \[plsql] OOM/Endless loop while parsing (PL)SQL
* General * General
* [#1506](https://sourceforge.net/p/pmd/bugs/1506/): \[core] When runing any RuleTst, start/end methods not called * [#1506](https://sourceforge.net/p/pmd/bugs/1506/): \[core] When runing any RuleTst, start/end methods not called
* [#1517](https://sourceforge.net/p/pmd/bugs/1517/): \[java] CPD reports on Java constructors when using ignoreIdentifiers * [#1517](https://sourceforge.net/p/pmd/bugs/1517/): \[java] CPD reports on Java constructors when using ignoreIdentifiers