Java coding guidelines: 75 recommendations for reliable and secure programs (2014)


[Allen 2000] Vermeulen, Allan, Scott W. Ambler, Greg Bumgardner, Eldon Metz, Trevor Misfeldt, Jim Shur, and Patrick Thompson. The Elements of Java Style. New York, NY: Cambridge University Press (2000).

[Apache 2013] Apache Tika: A Content Analysis Toolkit. The Apache Software Foundation (2013).

[API 2006] Java Platform, Standard Edition 6 API Specification. Oracle (2006/2011).

[API 2013] Java Platform, Standard Edition 7 API Specification. Oracle (2013).

[Arnold 2006] Arnold, Ken, James Gosling, and David Holmes. The Java Programming Language, Fourth Edition. Boston, MA: Addison-Wesley (2006).

[Bloch 2001] Bloch, Joshua. Effective Java: Programming Language Guide. Boston, MA: Addison-Wesley (2001).

[Bloch 2005] Bloch, Joshua, and Neal Gafter. Java Puzzlers: Traps, Pitfalls, and Corner Cases. Boston, MA: Addison-Wesley (2005).

[Bloch 2008] Bloch, Joshua. Effective Java: Programming Language Guide, Second Edition. Boston, MA: Addison-Wesley (2008).

[Campione 1996] Campione, Mary, and Kathy Walrath. The Java Tutorial: Object-Oriented Programming for the Internet. Reading, MA: Addison-Wesley (1996).

[Chan 1998] Chan, Patrick, Rosanna Lee, and Douglas Kramer. The Java Class Libraries: Supplement for the Java 2 Platform, Volume 1, Second Edition. Upper Saddle River, NJ: Prentice Hall (1998).

[Conventions 2009] Code Conventions for the Java Programming Language. Oracle (2009).

[Coomes 2007] Coomes, John, Peter Kessler, and Tony Printezis. “Garbage Collection–Friendly Programming.” JavaOne Conference (2007).

[Core Java 2003] Horstmann, Cay S., and Gary Cornell. Core Java 2, Volume I: Fundamentals, Seventh Edition. Upper Saddle River, NJ: Prentice Hall (2003).

[Coverity 2007] Coverity Prevent User’s Manual (3.3.0). Coverity (2007).

[Daconta 2003] Daconta, Michael C., Kevin T. Smith, Donald Avondolio, and W. Clay Richardson. More Java Pitfalls: 50 New Time-Saving Solutions and Workarounds. Indianapolis, IN: Wiley (2003).

[Davis 2008] Unicode Standard Annex #15: Unicode Normalization Forms, ed. Mark Davis and Ken Whistler. Unicode (2008).

[ESA 2005] Java Coding Standards. ESA Board for Software Standardisation and Control (BSSC) (2005).

[FindBugs 2008] FindBugs Bug Descriptions (2008/2011).

[Flanagan 2005] Flanagan, David. Java in a Nutshell, Fifth Edition. Sebastopol, CA: O’Reilly (2005).

[Fortify 2013] A Taxonomy of Coding Errors That Affect Security, “Java/JSP.” Fortify Software (2013).

[GNU 2013] GNU Coding Standards, §5.3, “Clean Use of C Constructs.” Richard Stallman and other GNU Project volunteers (2013).

[Goetz 2004] Goetz, Brian. Java Theory and Practice: Garbage Collection and Performance: Hints, Tips, and Myths about Writing Garbage Collection-Friendly Classes. IBM developerWorks (2004).

[Goetz 2006] Goetz, Brian, Tim Peierls, Joshua Bloch, Joseph Bowbeer, David Holmes, and Doug Lea. Java Concurrency in Practice. Boston, MA: Addison-Wesley (2006).

[Goetz 2007] Goetz, Brian. Java Theory and Practice: Managing Volatility: Guidelines for Using Volatile Variables. IBM developerWorks (2007).

[Gong 2003] Gong, Li, Gary Ellison, and Mary Dageforde. Inside Java 2 Platform Security: Architecture, API Design, and Implementation, Second Edition. Boston, MA: Addison-Wesley (2003).

[Goodliffe 2007] Goodliffe, Pete. Code Craft: The Practice of Writing Excellent Code. San Francisco, CA: No Starch Press, (2007).

[Grand 2002] Grand, Mark. Patterns in JavaVolume 1: A Catalog of Reusable Design Patterns Illustrated with UML, Second Edition. Indianapolis, IN: Wiley (2002).

[Grubb 2003] Grubb, Penny, and Armstrong A. Takang. Software Maintenance: Concepts and Practice, Second Edition. River Edge, NJ: World Scientific (2003).

[Guillardoy 2012] Guillardoy, Esteban. Java 0Day Analysis (CVE-2012-4681). (2012).

[Hatton 1995] Hatton, Les. Safer C: Developing Software for High-integrity and Safety-critical Systems. New York, NY: McGraw-Hill, (1995).

[Hawtin 2006] Hawtin, Thomas. [drlvm][kernel_classes] ThreadLocal Vulnerability. MarkMail (2006).

[Havelund 2009] Havelund, Klaus, and Al Niessner. JPL Coding Standard, Version 1.1. California Institute of Technology (2009).

[Hirondelle 2013] Passwords Never Clear in Text. Hirondelle Systems (2013).

[ISO/IEC 9126-1:2001] Software Engineering—Product Quality, Part 1, Quality Model (ISO/IEC 9126-1:2001). Geneva, Switzerland: International Organization for Standardization (2001).

[ISO/IEC/IEEE 24765:2010] Software Engineering—Product Quality, Part 1, Quality Model (ISO/IEC/IEEE 24765:2010). Geneva, Switzerland: International Organization for Standardization (2010).

[JLS 2013] Gosling, James, Bill Joy, Guy Steele, Gilad Bracha, and Alex Buckley. The Java Language Specification: Java SE 7 Edition. Oracle America, Inc. (2013).

[JVMSpec 1999] The Java Virtual Machine Specification, Second Edition. Sun Microsystems, Inc. (1999).

[Kalinovsky 2004] Kalinovsky, Alex. Covert Java: Techniques for Decompiling, Patching, and Reverse Engineering. Indianapolis, IN: SAMS (2004).

[Knoernschild 2002] Knoernschild, Kirk. Java Design: Objects, UML, and Process. Boston, MA: Addison-Wesley (2002).

[Lea 2000] Lea, Doug. Concurrent Programming in Java: Design Principles and Patterns, Second Edition. Boston, MA: Addison-Wesley (2000).

[Lo 2005] Lo, Chia-Tien Dan, Witawas Srisa-an, and J. Morris Chang. “Security Issues in Garbage Collection.” STSC Crosstalk (2005).

[Long 2012] Long, Fred, Dhruv Mohindra, Robert C. Seacord, Dean F. Sutherland, and David Svoboda. The CERT® Oracle® Secure Coding Standard for Java. Boston, MA: Addison-Wesley (2012).

[Manion 2013] Manion, Art. “Anatomy of Java Exploits,” CERT/CC Blog (2013).

[McGraw 1999] McGraw, Gary, and Ed Felten. Securing Java: Getting Down to Business with Mobile Code, Second Edition. New York, NY: Wiley (1999).

[Mettler 2010] Mettler, Adrian, and David Wagner. “Class Properties for Security Review in an Object-Capability Subset of Java.” Proceedings of the 5th ACM SIGPLAN Workshop on Programming Languages and Analysis for Security (PLAS ’10). New York, NY: ACM (2010). DOI: 10.1145/1814217.1814224.

[Miller 2009] Miller, Alex. Java Platform Concurrency Gotchas. JavaOne Conference (2009).

[Netzer 1992] Netzer, Robert H. B., and Barton P. Miller. “What Are Race Conditions? Some Issues and Formalization.” ACM Letters on Programming Languages and Systems 1(1):74–88 (1992).

[Oaks 2001] Oaks, Scott. Java Security. Sebastopol, CA: O’Reilly (2001).

[Oracle 2010a] Java SE 6 HotSpot Virtual Machine Garbage Collection Tuning. Oracle (2010).

[Oracle 2010b] New I/O APIs. Oracle (2010).

[Oracle 2011a] Java PKI Programmer’s Guide. Oracle (2011).

[Oracle 2011b] Java SE 6 Documentation. Oracle (2011).

[Oracle 2011c] Package javax.servlet.http.Oracle (2011).

[Oracle 2011d] Permissions in the Java SE 6 Development Kit (JDK). Oracle (2011).

[Oracle 2013a] API for Privileged Blocks. Oracle (2013).

[Oracle 2013b] “Reading ASCII Passwords from an InputStream Example,” Java Cryptography Architecture (JCA) Reference Guide. Oracle (2013).

[Oracle 2013c] Java Platform Standard Edition 7 Documentation. Oracle (2013).

[Oracle 2013d] Oracle Security Alert for CVE-2013-0422. Oracle (2013).

[OWASP 2009] Session Fixation in Java. OWASP (2009).

[OWASP 2011] Cross-site Scripting (XSS). OWASP (2011).

[OWASP 2012] “Why Add Salt?” Hashing Java. OWASP (2012).

[OWASP 2013] OWASP Guide Project. The Open Web Application Security Project (OWASP) (2013).

[Paar 2010] Paar, Christof, and Jan Pelzl. Understanding Cryptography: A Textbook for Students and Practitioners. Heidelberg, NY: Springer (2010).

[Pistoia 2004] Pistoia, Marco, Nataraj Nagaratnam, Larry Koved, and Anthony Nadalin. Enterprise Java Security: Building Secure J2EE Applications. Boston, MA: Addison-Wesley (2004).

[Policy 2010] Default Policy Implementation and Policy File Syntax, Document revision 1.6. Oracle (2010).

[SCG 2010] Secure Coding Guidelines for the Java Programming Language, Version 4.0. Oracle (2010).

[Seacord 2009] Seacord, Robert C. The CERT® C Secure Coding Standard. Boston, MA: Addison-Wesley (2009).

[Seacord 2012] Seacord, Robert C., Will Dormann, James McCurley, Philip Miller, Robert Stoddard, David Svoboda, and Jefferson Welch. Source Code Analysis Laboratory (SCALe) (CMU/SEI-2012-TN-013). Pittsburgh, PA: Carnegie Mellon University (2012)

[Seacord 2013] Seacord, Robert C. Secure Coding in C and C++, Second Edition. Boston, MA: Addison-Wesley (2013). See for news and errata.

[SecuritySpec 2010] Java Security Architecture. Oracle (2010).

[Sen 2007] Sen, Robi. Avoid the Dangers of XPath Injection. IBM developerWorks (2007).

[Sethi 2009] Sethi, Amit. Proper Use of Java’s SecureRandom. Cigital Justice League Blog (2009).

[Steinberg 2008] Steinberg, Daniel H. Using the Varargs Language Feature. Java Developer Connection Tech Tips (2008).

[Sterbenz 2006] Sterbenz, Andreas, and Charlie Lai. Secure Coding Antipatterns: Avoiding Vulnerabilities. JavaOne Conference (2006). ndate=1180213302000

[Sutherland 2010] Sutherland, Dean F., and William L. Scherlis. “Composable Thread Coloring.” In Proceedings of the 15th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (PPoPP ‘10). New York, NY: ACM (2010).

[Tutorials 2013] The Java Tutorials. Oracle (2013).

[Unicode 2013] Unicode 6.2.0. Mountain View, CA: The Unicode Consortium (2013).

[Viega 2005] Viega, John. CLASP Reference Guide, Volume 1.1. Secure Software, 2005.

[W3C 2003] The World Wide Web Security FAQ. World Wide Web Consortium (W3C) (2003).

[Ware 2008] Ware, Michael S. Writing Secure Java Code: A Taxonomy of Heuristics and an Evaluation of Static Analysis Tools. James Madison University (2008).

[Zadegan 2009] Zadegan, Bryant. A Lesson on Infinite Loops. (2009).