{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,20]],"date-time":"2026-09-20T03:09:32Z","timestamp":1789873772434,"version":"4.0.1"},"reference-count":37,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2008,3,1]],"date-time":"2008-03-01T00:00:00Z","timestamp":1204329600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100004965","name":"Sixth Framework Programme","doi-asserted-by":"publisher","award":["IST-015964"],"award-info":[{"award-number":["IST-015964"]}],"id":[{"id":"10.13039\/501100004965","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2008,3]]},"abstract":"<jats:p>\n            In the context of\n            <jats:italic>statically typed, class-based languages<\/jats:italic>\n            , we investigate classes that can be extended with\n            <jats:italic>trait<\/jats:italic>\n            composition. A trait is a collection of methods without state; it can be viewed as an\n            <jats:italic>incomplete stateless class<\/jats:italic>\n            . Traits can be composed in any order, but only make sense when imported by a class that provides state variables and additional methods to disambiguate conflicting names arising between the imported traits. We introduce FeatherTrait Java (FTJ), a conservative extension of the simple lightweight class-based calculus Featherweight Java (FJ) with\n            <jats:italic>statically typed traits<\/jats:italic>\n            . In FTJ, classes can be built using traits as basic behavioral bricks; method conflicts between imported traits must be resolved\n            <jats:italic>explicitly<\/jats:italic>\n            by the user either by (i) aliasing or excluding method names in traits, or by (ii) overriding explicitly the conflicting methods in the class or in the trait itself. We present an operational semantics with a lookup algorithm, and a sound type system that guarantees that evaluating a well-typed expression never yields a\n            <jats:italic>message-not-understood<\/jats:italic>\n            run-time error nor gets the interpreter stuck. We give examples of the increased expressive power of the trait-based inheritance model. The resulting calculus appears to be a good starting point for a rigorous mathematical analysis of typed class-based languages featuring trait-based inheritance.\n          <\/jats:p>","DOI":"10.1145\/1330017.1330022","type":"journal-article","created":{"date-parts":[[2008,3,19]],"date-time":"2008-03-19T12:58:50Z","timestamp":1205931530000},"page":"1-32","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":42,"title":["FeatherTrait"],"prefix":"10.1145","volume":"30","author":[{"given":"Luigi","family":"Liquori","sequence":"first","affiliation":[{"name":"INRIA, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Arnaud","family":"Spiwack","sequence":"additional","affiliation":[{"name":"ENS Cachan, France"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2008,3,14]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"crossref","unstructured":"Abadi M. and Cardelli L. 1996. A Theory of Objects. Springer Verlag New York.   Abadi M. and Cardelli L. 1996. A Theory of Objects. Springer Verlag New York.","DOI":"10.1007\/978-1-4419-8598-9"},{"key":"e_1_2_1_2_1","unstructured":"Allen E. Chase D. Luchangco V. Maessen J.-W. Ryu S. Steele G. L. and Tobin-Hochstadt S. 2007. The Fortress Language Specification version 1.0. http:\/\/research.sun.com\/projects\/plrg\/fortress.pdf.  Allen E. Chase D. Luchangco V. Maessen J.-W. Ryu S. Steele G. L. and Tobin-Hochstadt S. 2007. The Fortress Language Specification version 1.0. http:\/\/research.sun.com\/projects\/plrg\/fortress.pdf."},{"key":"e_1_2_1_3_1","unstructured":"Allen E. E. Bannet J. and Cartwright R. 2003. Mixins in generic java are sound. Tech. rep. Rice University.  Allen E. E. Bannet J. and Cartwright R. 2003. Mixins in generic java are sound. Tech. rep. Rice University."},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/937563.937567"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796801004257"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129502003687"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of TAPSOFT\/CAAP. Lecture Notes in Computer Science","volume":"1214","author":"Bono V.","unstructured":"Bono , V. , Bugliesi , M. , Dezani-Ciancaglini , M. , and Liquori , L . 1997. Subtyping constraint for incomplete objects . In Proceedings of TAPSOFT\/CAAP. Lecture Notes in Computer Science , vol. 1214 . Springer Verlag, New York, 465--477. Bono, V., Bugliesi, M., Dezani-Ciancaglini, M., and Liquori, L. 1997. Subtyping constraint for incomplete objects. In Proceedings of TAPSOFT\/CAAP. Lecture Notes in Computer Science, vol. 1214. Springer Verlag, New York, 465--477."},{"key":"e_1_2_1_8_1","volume-title":"Proceedings of ECOOP. Lecture Notes in Computer Science","volume":"1628","author":"Bono V.","unstructured":"Bono , V. , Patel , A. , and Shmatikov , V . 1999. A core calculus of classes and mixins . In Proceedings of ECOOP. Lecture Notes in Computer Science , vol. 1628 . Springer-Verlag, New York. Bono, V., Patel, A., and Shmatikov, V. 1999. A core calculus of classes and mixins. In Proceedings of ECOOP. Lecture Notes in Computer Science, vol. 1628. Springer-Verlag, New York."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/97945.97982"},{"key":"e_1_2_1_11_1","first-page":"27","article-title":"Obliq: A language with distributed scope","volume":"8","author":"Cardelli L.","year":"1995","unstructured":"Cardelli , L. 1995 . Obliq: A language with distributed scope . Comput. Syst. 8 , 1, 27 -- 59 . Cardelli, L. 1995. Obliq: A language with distributed scope. Comput. Syst. 8, 1, 27--59.","journal-title":"Comput. Syst."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/286936.286955"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1119479.1119483"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/232629.232654"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/289423.289432"},{"key":"e_1_2_1_16_1","unstructured":"Fisher K. and Reppy J. 2004. Statically typed traits. http:\/\/www.cs.uchicago.edu\/files\/tr-authentic\/TR-2003-13.pdf. (The early version \u201cA Typed Calculus of Traits\u201d has been presented at FOOL 10.)  Fisher K. and Reppy J. 2004. Statically typed traits. http:\/\/www.cs.uchicago.edu\/files\/tr-authentic\/TR-2003-13.pdf. (The early version \u201cA Typed Calculus of Traits\u201d has been presented at FOOL 10.)"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/277650.277730"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/268946.268961"},{"key":"e_1_2_1_19_1","unstructured":"Goldberg A. and Robson D. 1983. Smalltalk-80: the Language and its Implementation. Addison-Wesley Reading MA.   Goldberg A. and Robson D. 1983. Smalltalk-80: the Language and its Implementation. Addison-Wesley Reading MA."},{"key":"e_1_2_1_20_1","volume-title":"Proceedings of ESOP. Lecture Notes in Computer Science, 2986","author":"Hirschowitz T.","unstructured":"Hirschowitz , T. , Leroy , X. , and Wells , J. B . 2004. Call-by-value mixin modules: Reduction semantics, side effects, types . In Proceedings of ESOP. Lecture Notes in Computer Science, 2986 , Springer-Verlag, New York, 64--78. Hirschowitz, T., Leroy, X., and Wells, J. B. 2004. Call-by-value mixin modules: Reduction semantics, side effects, types. In Proceedings of ESOP. Lecture Notes in Computer Science, 2986, Springer-Verlag, New York, 64--78."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/503502.503505"},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of ECOOP. Lecture Notes in Computer Science, 1241","author":"Kiczales G.","unstructured":"Kiczales , G. , Lamping , J. , Mendhekar , A. , Maeda , C. , Lopes , C. V. , Loingtier , J.-M. , and Irwin , J . 1997. Aspect-oriented programming . In Proceedings of ECOOP. Lecture Notes in Computer Science, 1241 , Springer-Verlag, New York, 220--242. Kiczales, G., Lamping, J., Mendhekar, A., Maeda, C., Lopes, C. V., Loingtier, J.-M., and Irwin, J. 1997. Aspect-oriented programming. In Proceedings of ECOOP. Lecture Notes in Computer Science, 1241, Springer-Verlag, New York, 220--242."},{"key":"e_1_2_1_23_1","series-title":"Lecture Notes in Computer Science, 1241","volume-title":"Proceedings of ECOOP","author":"Liquori L.","unstructured":"Liquori , L. 1997. An extended theory of primitive objects: first order system . In Proceedings of ECOOP . Lecture Notes in Computer Science, 1241 , Springer-Verlag , New York , 146--169. Liquori, L. 1997. An extended theory of primitive objects: first order system. In Proceedings of ECOOP. Lecture Notes in Computer Science, 1241, Springer-Verlag, New York, 146--169."},{"key":"e_1_2_1_24_1","series-title":"Lecture Notes in Computer Science, 1445","volume-title":"Proceedings of ECOOP","author":"Liquori L.","unstructured":"Liquori , L. 1998. On object extension . In Proceedings of ECOOP . Lecture Notes in Computer Science, 1445 , Springer-Verlag , New York , 498--552. Liquori, L. 1998. On object extension. In Proceedings of ECOOP. Lecture Notes in Computer Science, 1445, Springer-Verlag, New York, 498--552."},{"key":"e_1_2_1_25_1","unstructured":"Liquori L. and Spiwack A. 2004. Featherweight-trait Java : A trait-based extension for FJ. Tech. Rep. RR-5247 INRIA. Juin. http:\/\/www.inria.fr\/rrrt\/rr-5247.html.  Liquori L. and Spiwack A. 2004. Featherweight-trait Java : A trait-based extension for FJ. Tech. Rep. RR-5247 INRIA. Juin. http:\/\/www.inria.fr\/rrrt\/rr-5247.html."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2008.01.051"},{"key":"e_1_2_1_28_1","unstructured":"Microsoft. The C&num; Home Page. http:\/\/msdn.microsoft.com\/vcsharp\/.  Microsoft. The C&num; Home Page. http:\/\/msdn.microsoft.com\/vcsharp\/."},{"key":"e_1_2_1_29_1","doi-asserted-by":"crossref","unstructured":"Milner R. Tofte M. Harper R. and MacQueen D. 1997. The Definition of Standard ML (Revised). MIT Press Cambridge MA.   Milner R. Tofte M. Harper R. and MacQueen D. 1997. The Definition of Standard ML (Revised). MIT Press Cambridge MA.","DOI":"10.7551\/mitpress\/2319.001.0001"},{"key":"e_1_2_1_30_1","unstructured":"Moby Team. 2007. The Moby home page. http:\/\/moby.cs.uchicago.edu\/.  Moby Team. 2007. The Moby home page. http:\/\/moby.cs.uchicago.edu\/."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.5381\/jot.2006.5.4.a4"},{"key":"e_1_2_1_33_1","unstructured":"Scala Team. 2007. The scala home page. http:\/\/scala.epfl.ch\/.  Scala Team. 2007. The scala home page. http:\/\/scala.epfl.ch\/."},{"key":"e_1_2_1_34_1","series-title":"Lecture Notes in Computer Science, 2743","volume-title":"Traits: Composable units of behaviour. In Proceedings of ECOOP","author":"Sch\u00e4rli N.","year":"2003","unstructured":"Sch\u00e4rli , N. , Ducasse , S. , Nierstrasz , O. , and Black , A . 2003 . Traits: Composable units of behaviour. In Proceedings of ECOOP . Lecture Notes in Computer Science, 2743 , Springer-Verlag , New York , 248--274. Sch\u00e4rli, N., Ducasse, S., Nierstrasz, O., and Black, A. 2003. Traits: Composable units of behaviour. In Proceedings of ECOOP. Lecture Notes in Computer Science, 2743, Springer-Verlag, New York, 248--274."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1007\/11531142_20"},{"key":"e_1_2_1_36_1","volume-title":"Research Directions in Object-Oriented Programming","author":"Snyder A.","unstructured":"Snyder , A. 1987. Inheritance and the development of encapsulated software systems . In Research Directions in Object-Oriented Programming . MIT Press , Cambridge, MA , 165--188. Snyder, A. 1987. Inheritance and the development of encapsulated software systems. In Research Directions in Object-Oriented Programming. MIT Press, Cambridge, MA, 165--188."},{"key":"e_1_2_1_37_1","volume-title":"The C&plus;&plus","author":"Stroustrup B.","unstructured":"Stroustrup , B. 1997. The C&plus;&plus ; Programming Language, Ch . 15, Third Ed. Addison Wesley , Reading, MA. Stroustrup, B. 1997. The C&plus;&plus; Programming Language, Ch. 15, Third Ed. Addison Wesley, Reading, MA."},{"key":"e_1_2_1_38_1","unstructured":"Sun. Java Technology. http:\/\/java.sun.com\/.  Sun. Java Technology. http:\/\/java.sun.com\/."},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/38765.38828"},{"key":"e_1_2_1_40_1","volume-title":"Proceedings of ESOP. Lecture Notes in Computer Science","volume":"1782","author":"Wells J. B.","unstructured":"Wells , J. B. and Vestergaard , R . 2000. Equational reasoning for linking with first-class primitive modules . In Proceedings of ESOP. Lecture Notes in Computer Science , vol. 1782 . Springer Verlag, New York, 412--428. Wells, J. B. and Vestergaard, R. 2000. Equational reasoning for linking with first-class primitive modules. In Proceedings of ESOP. Lecture Notes in Computer Science, vol. 1782. Springer Verlag, New York, 412--428."}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1330017.1330022","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1330017.1330022","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T14:47:31Z","timestamp":1750258051000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1330017.1330022"}},"subtitle":["A modest extension of Featherweight Java"],"short-title":[],"issued":{"date-parts":[[2008,3]]},"references-count":37,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2008,3]]}},"alternative-id":["10.1145\/1330017.1330022"],"URL":"https:\/\/doi.org\/10.1145\/1330017.1330022","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2008,3]]},"assertion":[{"value":"2005-05-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2007-02-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2008-03-14","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}