Hi,

we're developing using JDK 1.4, and unfortunately someone uses "enum" as a 
variable name somewhere in one of his source files. Since "enum" is a reserved 
keyword for Java 5 and higher, executing javadoc results in a couple of errors:

(...)
Loading source files for package ukv.lrkern...
d:\workspaces\sukv-maven\CAccess\src\ukv\lrkern\LRKern.java:10948: as of 
release 5, 'enum' is a keyword, and may not be used as an identifier
(use -source 1.4 or lower to use 'enum' as an identifier)
            Enumeration enum = map.keys();

etc.

In the reportings section in my pom.xml I added

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.2</version>
        <configuration>
                <source>1.4</source>
        </configuration>
</plugin>

but that didn't help. When I execute Javadoc in the command line using the 
"-source 1.4" parameter, the errors remain (although the program tells me to 
add this parameter...).

Until the corresponding classes are updated or refactored, how can I let 
Javadoc generate the API documentation?


Regards

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to