Skip to main navigation Skip to search Skip to main content

Declarative Dynamic Object Reclassification

  • University of Oslo
  • University of Turin

Research output: Conference Article in Proceeding or Book/Report chapterArticle in proceedingsResearchpeer-review

Abstract

In object-oriented languages, dynamic object reclassification is a technique to change the class binding of an object at runtime. Current approaches express when and how to reclassify inside the program’s business code, while maintaining internal consistency. These approaches are less suited for programs that need to be consistent with an external context, such as autonomous systems interacting with a knowledge base. This paper proposes declarative dynamic object reclassification, a novel technique that provides a separation of concerns between a program’s business code and its adaptation logic for reclassification, expressed via a knowledge base. We present Featherweight Semantically Reflected Java, a minimal calculus for declarative dynamic object reclassification that enables the programmer to define consistency both internally (using a type system) and externally (using declarative classification queries). We use this calculus to study how internal and external consistency interact for declarative dynamic object reclassification. We further implement the technique by extending SMOL, a language for reflective programming via external knowledge bases.
Original languageEnglish
Title of host publication39th European Conference on Object-Oriented Programming (ECOOP 2025) : Leibniz International Proceedings in Informatics
EditorsJonathan Aldrich, Alexandra Silva
PublisherSchloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH
Publication date25 Jun 2025
Pages29:1-29:31
ISBN (Electronic)978-3-95977-373-7
DOIs
Publication statusPublished - 25 Jun 2025
EventEuropean Conference on Object-Oriented Programming - Bergen, Norway
Duration: 30 Jun 20252 Jul 2025
Conference number: 39
https://2025.ecoop.org/

Conference

ConferenceEuropean Conference on Object-Oriented Programming
Number39
Country/TerritoryNorway
CityBergen
Period30/06/202502/07/2025
Internet address

Keywords

  • Dynamic Object Reclassification
  • Dynamic Software Updates
  • Featherweight Java
  • Knowledge Bases
  • Semantic Reflection
  • Type Soundness

Fingerprint

Dive into the research topics of 'Declarative Dynamic Object Reclassification'. Together they form a unique fingerprint.

Cite this