Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2786536.2786539acmotherconferencesArticle/Chapter ViewAbstractPublication PagesecoopConference Proceedingsconference-collections
research-article

A three-valued type system for true positives detection in Java-like languages

Published: 07 July 2015 Publication History
  • Get Citation Alerts
  • Abstract

    Soundness of type systems is an important property to guarantee the absence of certain kinds of runtime errors, that is, no false negatives can occur.
    Unfortunately, for well-known theoretical limits, there are many programs that cannot be typed correctly, even though they will never manifest runtime errors, that is, false positives can occur.
    Minimizing the rate of false positives makes static type analysis more effective, especially for dynamically typed languages. In this paper we propose a new approach to type systems, aiming to distinguish true from potentially false positives, and, thus, to provide useful hints on those lines of code that definitely contain a bug that sooner or later will occur.
    To this aim, we define a three-valued type system for Featherweight Java which is sound in the usual sense, but can also distinguish true positives from potentially false ones.

    References

    [1]
    D. Ancona. Soundness of Object-Oriented Languages with Coinductive Big-Step Semantics. In J. Noble, editor, ECOOP 2012 - Object-Oriented Programming, volume 7313, pages 459--483. Springer, 2012.
    [2]
    D. Ancona. How to prove type soundness of Java-like languages without forgoing big-step semantics. In FTfJP'14, pages 1:1--1:6. ACM, 2014.
    [3]
    D. Ancona, F. Damiani, S. Drossopoulou, and E. Zucca. Polymorphic bytecode: Compositional compilation for Java-like languages. In POPL 2005, pages 26--37, 2005.
    [4]
    D. Ancona and E. Zucca. Principal typings for Java-like languages. In POPL 2004, pages 306--317, 2004.
    [5]
    K. B. Bruce and J. N. Foster. LOOJ: weaving LOOM into Java. In ECOOP 2004, pages 389--413, 2004.
    [6]
    A. Igarashi, B. C. Pierce, and P. Wadler. Featherweight Java: a minimal core calculus for Java and GJ. TOPLAS, 23(3):396--450, 2001.
    [7]
    M. Sridharan, S. Chandra, J. Dolby, S. J. Fink, and E. Yahav. Alias analysis for object-oriented programs. In Aliasing in Object-Oriented Programming. Types, Analysis and Verification, pages 196--232. Springer, 2013.

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    FTfJP '15: Proceedings of the 17th Workshop on Formal Techniques for Java-like Programs
    July 2015
    49 pages
    ISBN:9781450336567
    DOI:10.1145/2786536
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 07 July 2015

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. Java
    2. three-valued logics
    3. true positives
    4. type systems

    Qualifiers

    • Research-article

    Funding Sources

    Conference

    ECOOP '15

    Acceptance Rates

    FTfJP '15 Paper Acceptance Rate 9 of 14 submissions, 64%;
    Overall Acceptance Rate 51 of 75 submissions, 68%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 66
      Total Downloads
    • Downloads (Last 12 months)5
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 10 Aug 2024

    Other Metrics

    Citations

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media