Menu

#115 IllegalStateException with keywordslowercase argument and type or constant in package

next_release
open
nobody
None
5
2020-06-24
2020-06-24
Basil Peace
No

Whenever package contains type or constant, and -keywordslowercase argument is passed, pldoc gives the following error:

Throwable at package <pkg_constant.pks>: java.lang.IllegalStateException: Element CONSTANT was not started !
java.lang.IllegalStateException: Element CONSTANT was not started !
    at net.sourceforge.pldoc.XMLWriter.endElement(XMLWriter.java:249)
    at net.sourceforge.pldoc.parser.PLSQLParser.variableOrConstantDeclaration(PLSQLParser.java:19805)
    at net.sourceforge.pldoc.parser.PLSQLParser.declarativeUnit(PLSQLParser.java:3200)
    at net.sourceforge.pldoc.parser.PLSQLParser.declarativeSection(PLSQLParser.java:3596)
    at net.sourceforge.pldoc.parser.PLSQLParser.packageSpec(PLSQLParser.java:2062)
    at net.sourceforge.pldoc.parser.PLSQLParser.input(PLSQLParser.java:732)
    at net.sourceforge.pldoc.PLDoc.processPackage(PLDoc.java:852)
    at net.sourceforge.pldoc.PLDoc.run(PLDoc.java:319)
    at net.sourceforge.pldoc.PLDoc.main(PLDoc.java:169)

Test cases are attached.

I've written a patch fixing exactly this exception. But looks like it's not the only problem with -keywordslowercase, since with this patch generated files are empty.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.