IllegalStateException with keywordslowercase argument and type or constant...
Status: Alpha
Brought to you by:
altumano
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.