In the case that there is a declaration such as :
myval owner.package.type%type;
the parser quits with an error that it is expecting
"DEFAULT'. Per the following:
C:\Down\pldoc-0.8.2>call pldoc.bat -doctitle
\"PK_CAPTION Application\" -overvie
w samples/overview1.html -d PK_CaptionDoc
c:\working\pk_caption.pks
PLDoc version: 0.8.2
Parsing file c:\working\pk_caption.pks ...
Error parsing line 88, column 56
Last consumed token: "LANGUAGE"
net.sourceforge.pldoc.parser.ParseException:
Encountered "." at line 88, column
56.
Was expecting one of:
"DEFAULT" ...
")" ...
"," ...
":=" ...
"%" ...
"@" ...
at
net.sourceforge.pldoc.parser.PLSQLParser.generateParseException(PLSQL
Parser.java:14260)
at
net.sourceforge.pldoc.parser.PLSQLParser.jj_consume_token(PLSQLParser
.java:14123)
at
net.sourceforge.pldoc.parser.PLSQLParser.programUnit(PLSQLParser.java
:2354)
at
net.sourceforge.pldoc.parser.PLSQLParser.declarativeSection(PLSQLPars
er.java:2294)
at
net.sourceforge.pldoc.parser.PLSQLParser.packageSpec(PLSQLParser.java
:1363)
at
net.sourceforge.pldoc.parser.PLSQLParser.input(PLSQLParser.java:1148)
at net.sourceforge.pldoc.PLDoc.run(PLDoc.java:148)
at net.sourceforge.pldoc.PLDoc.main(PLDoc.java:72)
File c:\working\pk_caption.pks skipped.
Generating HTML files ...
Generating summary.html ...
Generating allpackages.html ...
Generating index.html ...
Generating <unit>.html ...
Done (0.984 seconds).
Press any key to continue . . .
The code in question:
p_language_id IN
gtd.LANGUAGE.language_id%TYPE
Logged In: YES
user_id=86901
The problem is that LANGUAGE is a reserved word in PL/SQL.
You should not use it to name a package.