Reified Type Parameters Using Java']Java Annotations

被引:0
|
作者
Gerakios, Prodromos [1 ]
Biboudis, Aggelos [1 ]
Smaragdakis, Yannis [1 ]
机构
[1] Univ Athens, Dept Informat, GR-10679 Athens, Greece
基金
欧洲研究理事会;
关键词
mixins; reification; type annotation; pluggable types;
D O I
10.1145/2637365.2517223
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Java generics are compiled by-erasure: all clients reuse the same bytecode, with uses of the unknown type erased. C++ templates are compiled by-expansion: each type-instantiation of a template pro- duces a different code definition. The two approaches offer trade- offs on multiple axes. We propose an extension of Java generics that allows by-expansion translation relative to selected type pa- rameters only. This language design allows sophisticated users to get the best of both worlds at a fine granularity. Furthermore, our proposal is based on Java 8 Type Annotations (JSR 308) and the Checker Framework as an abstraction layer for controlling compi- lation without changes to the internals of a Java compiler.
引用
收藏
页码:61 / 64
页数:4
相关论文
共 50 条
  • [1] Reified type parameters using Java annotations
    Association for Computing Machinery, 2 Penn Plaza, Suite 701, New York, NY 10121-0701, United States
  • [2] Java']Java annotations and apt
    Benton, J
    DR DOBBS JOURNAL, 2005, 30 (07): : 31 - +
  • [3] Software Manipulation with Annotations in Java']Java
    Gervasi, Vincenzo
    Galilei, Giacomo A.
    ADVANCES IN SOFTWARE ENGINEERING, 2008, 5316 : 161 - 184
  • [4] PAL: Exploiting Java']Java annotations for parallelism
    Danelutto, Marco
    Pasin, Marcelo
    Vanneschi, Marco
    Dazzi, Patrizio
    Laforenza, Domenico
    Presti, Luigi
    ACHIEVEMENTS IN EUROPEAN RESEARCH ON GRID SYSTEMS, 2008, : 83 - +
  • [5] @PT: Unobtrusive parallel programming with Java']Java annotations
    Mehrabi, Mostafa
    Giacaman, Nasser
    Sinnen, Oliver
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2019, 31 (01):
  • [6] Beyond Annotations: A Proposal for Extensible Java']Java (XJ)
    Clark, Tony
    Sammut, Paul
    Willans, James
    EIGHTH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, 2008, : 229 - 238
  • [7] A modelling language for the effective design of Java']Java annotations
    Cordoba, Irene
    de Lara, Juan
    30TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, VOLS I AND II, 2015, : 2087 - 2092
  • [8] Manipulating Data Lakes Intelligently With Java']Java Annotations
    Hoi, Lap Man
    Ke, Wei
    Im, Sio Kei
    IEEE ACCESS, 2024, 12 : 34903 - 34917
  • [9] Investigating the Limitations of Java']Java Annotations for Input Validation
    Mancini, Federico
    Hovland, Dag
    Mughal, Khalid A.
    FIFTH INTERNATIONAL CONFERENCE ON AVAILABILITY, RELIABILITY, AND SECURITY: ARES 2010, PROCEEDINGS, 2010, : 513 - 518
  • [10] TRANSFORMATION OF OBJECT-ORIENTED CODE INTO SEMANTIC WEB USING JAVA']JAVA ANNOTATIONS
    Jezek, Petr
    Moucek, Roman
    ICEIS 2011: PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS, VOL 4, 2011, : 207 - 210