Can assertions be enabled in javac 1.5 or 1.6? The -enableassertions or -ea switch worked in 1.4, but now I get: "Error: javac: invalid flag". I can't find the switch in the specs either.
Problem solved: -enableassertions is a runtime flag. (The corresponding compiler flag in 1.4 decided whether to use 'assert' as a keyword or not. Apparently it's always a keyword in 1.5 and above.)
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.