Improving type error messages for generic Java

9Citations
Citations of this article
22Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Since version 1.5, generics (parametric polymorphism) are part of the Java language. However, the combination of parametric polymorphism and inclusion polymorphism is complicated, particularly so for Generic Java. Indeed, the main Java compilers, Eclipse's ejc and Sun's javac, do not even accept the same set of programs. Moreover, experience with these compilers shows that the error messages provided by them leave more than a little to be desired. To alleviate the latter problem, we describe how to adapt the type inference process of Java to obtain better error diagnostics for generic method invocations. Although the extension by itself already helps to improve type error messages to some extent, another major advantage of the new type inference process is that it also paves the way for further heuristics can provide additional diagnostic information. The extension has been implemented into the JastAdd Extensible Java Compiler. © 2011 Springer Science+Business Media, LLC.

References Powered by Scopus

A theory of type polymorphism in programming

1379Citations
N/AReaders
Get full text

Principal type-schemes for functional programs

699Citations
N/AReaders
Get full text

JastAdd - An aspect-oriented compiler construction system

133Citations
N/AReaders
Get full text

Cited by Powered by Scopus

Compiler error messages considered unhelpful: The landscape of text-based programming error message research

152Citations
N/AReaders
Get full text

How developers visualize compiler messages: A foundational approach to notification construction

12Citations
N/AReaders
Get full text

Precise explanation of success typing errors

8Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

El Boustani, N., & Hage, J. (2011). Improving type error messages for generic Java. In Higher-Order and Symbolic Computation (Vol. 24, pp. 3–39). https://doi.org/10.1007/s10990-011-9070-3

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 8

47%

Professor / Associate Prof. 3

18%

Lecturer / Post doc 3

18%

Researcher 3

18%

Readers' Discipline

Tooltip

Computer Science 16

84%

Physics and Astronomy 1

5%

Social Sciences 1

5%

Engineering 1

5%

Save time finding and organizing research with Mendeley

Sign up for free