Compiler Options - touniez/comp402doc GitHub Wiki
Configurable options relating to compiling source code in DrJava. Note that Compiler Warnings are not shown when compiling any Java Language Level files. Also note that the Compiler Warnings options are all passed using the "-Xlint:" flag, which is a non-standard option and may not work with all implementations of the JDK.
Unchecked Warnings (show.unchecked.warnings = true
)
Passes the "-Xlint:unchecked" warning to javac. This will give more
detail for unchecked conversion warnings that are mandated by the Java
Language Specification.
Deprecation Warnings (show.deprecation.warnings = true
)
Passes the "-Xlint:deprecation" warning to javac. According to the JLS,
this will show a description of each use or override of a deprecated
member or class.
Path Warnings (show.path.warnings = false
)
Passes the "-Xlint:path" warning to javac. According to the JLS, this
will warn about non-existent path (classpath, sourcepath, etc.)
directories.
Serial Warnings (show.serial.warnings = false
)
Passes the "-Xlint:serial" warning to javac. According to the JLS, this
will warn about missing serialVersionUID definitions on serializable
classes.
Finally Warnings (show.finally.warnings = false
)
Passes the "-Xlint:finally" warning to javac. According to the JLS, this
will warn about finally clauses that cannot complete normally.
Fall-through Warnings (show.fallthrough.warnings = false
)
Passes the "-Xlint:fallthrough" warning to javac. According to the JLS,
this will check switch blocks for fall-through cases and provide a
warning message for any that are found. Fall-through cases are cases in
a switch block, other than the last case in the block, whose code does
not include a break statement, allowing code execution to "fall through"
from that case to the next case.
Compiler Preference (default.compiler.preference = No Preference
)
Controls which compiler DrJava should choose when it starts. If no
preference is set, DrJava will choose the newest compiler it can find.