Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT Oracle Coding Standard for Java
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT Oracle Coding Standard for Java
2 Rules
Rule 12. Thread-Safety Miscellaneous (TSM)
TSM03-J. Do not publish partially initialized objects
Page Information
Title:
TSM03-J. Do not publish partially initialized objects
Author:
Dhruv Mohindra
Dec 15, 2009
Last Changed by:
Jon O'Donnell
Mar 31, 2021
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/vzdGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (6)
Page:
LCK10-J. Use a correct form of the double-checked locking idiom
Page:
TSM02-J. Do not use background threads during class initialization
Page:
OBJ11-J. Be wary of letting constructors throw exceptions
Page:
OBJ10-J. Do not use public static nonfinal fields
Page:
VNA01-J. Ensure visibility of shared references to immutable objects
Page:
TSM01-J. Do not let the this reference escape during object construction
Hierarchy
Parent Page
Page:
Rule 12. Thread-Safety Miscellaneous (TSM)
Labels
Global Labels (4)
tsm
android-applicable
android
rule
Recent Changes
Time
Editor
Mar 31, 2021 13:40
Jon O'Donnell
View Changes
Mar 22, 2018 10:24
David Svoboda
View Changes
s/later/earlier
Nov 02, 2016 14:02
Amy Gale
View Changes
added "automated detection" section
Feb 02, 2016 14:40
Sandy Shrum
View Changes
Jun 22, 2015 16:34
Carol J. Lallier
View Page History
Outgoing Links
External Links (2)
java.sun.com/docs/books/jls/third_edition/html/memory.html#…
docs.oracle.com/javase/specs/jls/se8/html/jls-17.html#jls-1…
SEI CERT Oracle Coding Standard for Java (10)
Page:
Rule BB. Glossary
Page:
OBJ11-J. Be wary of letting constructors throw exceptions
Home page:
SEI CERT Oracle Coding Standard for Java
Page:
Rule AA. References
Page:
TSM01-J. Do not let the this reference escape during object construction
Page:
VNA01-J. Ensure visibility of shared references to immutable objects
Page:
TSM02-J. Do not use background threads during class initialization
Page:
Rule 13. Input Output (FIO)
Page:
LCK00-J. Use private final lock objects to synchronize classes that may interact with untrusted code
Page:
Rule 12. Thread-Safety Miscellaneous (TSM)
Overview
Content Tools
{"serverDuration": 79, "requestCorrelationId": "2d831222f763d374"}