JDK-4149937 : javac -O should have -nodepend
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.1.6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-06-17
  • Updated: 1998-06-17
  • Resolved: 1998-06-17
Related Reports
Relates :  
Description

Name: tb29552			Date: 06/17/98


javac -O automatically assumes -depend.  This is
documented in javac's docs.  For a large project 
where classes in different packages refer to each 
other, individual java files are compiled multiple 
times (hours!!) just because they are referred 
multiple times.

Either javac -O should not assume -depend or there
should another flag -nodepend which will not compile 
dependencies automatically.  Also, the timestamps of 
source and .class files should be checked before 
files are compiled.
(Review ID: 33288)
======================================================================

Comments
EVALUATION The -O and -depend functionality has been decoupled in 1.2. At the time of this writing the documentation about -depend is still not quite correct, but at least it is no longer thrust upon the user. I'm closing this as "not reproducible" because there was no original bug for the decoupling. david.stoutamire@Eng 1998-06-17
17-06-1998

WORK AROUND Don't use -O in 1.1. The performance differences for most codes are negligible, and the interclass optimizations javac performs in 1.1 can create problems with binary compatibility. david.stoutamire@Eng 1998-06-17
17-06-1998