Skip to search boxSkip to navigationSkip to main content

Declarative Dynamic Object Reclassification

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Host publication Subtitle

Leibniz International Proceedings in Informatics

Original language

English

Pages from-to (Number of pages)

Pages 29:1-29:31

Publication milestones

  • Published - 25/06/2025

Publication status

Published - 25/06/2025

Publisher

Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH

ISBN (Electronic)

978-3-95977-373-7

Publication IDs

  • Scopus: 105009697348

Host publication title

39th European Conference on Object-Oriented Programming (ECOOP 2025)

Host publication editors

  • Jonathan Aldrich
  • Alexandra Silva

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.

Publication metrics

Related Event

Title

European Conference on Object-Oriented Programming

Event type

Conference

Degree of recognition

International event

Date

30/06/2025 - 02/07/2025

Location

BergenNorway