Re: javac Flags



dimitrik107@xxxxxxxxxxx wrote:
Andrew Thompson wrote:
dimitrik107@xxxxxxxxxxx wrote:
I am trying to learn about java compiler and flags.
....
Most information about using compiler flags for extra
speed is obsolete.
...
Thank you. What flags you find useful? In general not only for speed.

The only compiler flags I regularly need to use are the
ones to do with compilation for particular Java versions.
These are also known as 'cross-compilation options'
in the docs., they are -target and -bootclasspath.

Occasionally I use the -deprecation flag to find what method
or attribute is used by code I am importing that has been
marked as deprecated, but this is usually unnecessary,
since it often comes down to a call to frame.show()
or similar, that is pretty easy to spot anyway.

Andrew T.

.