Publication | Closed Access
Declaring and checking non-null types in an object-oriented language
183
Citations
13
References
2003
Year
Unknown Venue
EngineeringNon-null FieldsVerificationSoftware EngineeringPossibly-null ReferencesSoftware AnalysisFormal VerificationGeneric ProgrammingDependently Typed ProgrammingStatic CheckingObject-oriented LanguagePolymorphism (Computer Science)Non-null ReferencesComputer ScienceType SystemStatic Program AnalysisSoftware DesignProgram AnalysisAutomated ReasoningSoftware TestingFormal Methods
Distinguishing non-null references from possibly-null references at the type level can detect null-related errors in object-oriented programs at compile-time. This paper gives a proposal for retrofitting a language such as C# or Java with non-null types. It addresses the central complications that arise in constructors, where declared non-null fields may not yet have been initialized, but the partially constructed object is already accessible. The paper reports experience with an implementation for annotating and checking null-related properties in C# programs.
| Year | Citations | |
|---|---|---|
Page 1
Page 1