• Home
  • Search
  • Type Inference in Java: Characteristics and Limitations
  • https://doi.org/10.1007/978-981-33-6691-6_15Copy DOI Icon

Type Inference in Java: Characteristics and Limitations

  • Jan 1, 2021
  • Neha Kumari +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

With the introduction of parametric types in Java, the type system becomes more complex to handle. The Java generics requires more programming efforts to instantiate appropriate types. In such a situation, a sound type inference algorithm may reduce programming load and ensure safety. Java type inference algorithm has eased programming efforts by reducing explicit instantiation of types. The Java type inference algorithm is being expanded. Still, the impact of inference in mainstream programming is limited. Moreover, the unsound approach for inference causes unpredictable behavior in program code. The limitations and unsoundness of Java type inference need to be discussed to avoid the failure of codes. In this paper, we discuss limitations and issues of type inference algorithm, such as the incapability to infer wildcards as return type in generic methods, and limitations of local variable type inference. Further, we discuss how the machine learning approaches can help to develop a safe type inference algorithm.

Similar Papers
  • Conference Article
  • Citations21

Type inference for datalog and its application to query optimisation

  • Jun 09, 2008
  • Oege De Moor +3
  • Book Chapter
  • Citations26

On the Unification of Substitutions in Type Inference

  • Jan 01, 1999
  • Bruce J Mcadam
  • Conference Article
  • Citations30

Polymorphic type inference for machine code

  • Jun 02, 2016
  • Matt Noonan +2
  • Research Article
  • Citations10

Polymorphic type inference for machine code

  • Jun 02, 2016
  • ACM SIGPLAN Notices
  • Matt Noonan +2
  • Conference Article
  • Citations14

Polymorphic type inference for scripting languages with object extensions

  • Oct 24, 2011
  • Tian Zhao
  • PDF
  • Research Article

Вывод типов для языка Python

  • Jan 01, 2013
  • Proceedings of the Institute for System Programming of RAS
  • I.E Bronshteyn
  • Conference Article
  • Citations1

Type-based Enforcement of Infinitary Trace Properties for Java

  • Sep 06, 2021
  • Serdar Erbatur +2
  • Research Article
  • Citations24

LHD 2.0: A text mining approach to typing entities in knowledge graphs

  • Jun 02, 2016
  • Journal of Web Semantics
  • Tomáš Kliegr +1
  • PDF
  • Research Article
  • Citations34

A Bi-Directional Refinement Algorithm for the Calculus of (Co)Inductive Constructions

  • Mar 02, 2012
  • Logical Methods in Computer Science
  • Andrea Asperti +3
  • Research Article

From ML type inference to stratified type inference

  • Sep 12, 2005
  • ACM SIGPLAN Notices
  • François Pottier
  • Conference Article
  • Citations105

Object and reference immutability using Java generics

  • Sep 07, 2007
  • Yoav Zibin +5
  • Conference Article

On Synergies between Type Inference, Generation and Normalization of SK-Combinator Trees

  • Sep 01, 2015
  • Paul Tarau
  • Book Chapter
  • Citations227

Towards Type Inference for JavaScript

  • Jan 01, 2005
  • Christopher Anderson +2
  • Research Article

Type inference, principal typings, and let-polymorphism for first-class mixin modules

  • Sep 12, 2005
  • ACM SIGPLAN Notices
  • Henning Makholm +1
  • Research Article
  • Citations60

Types and trace effects of higher order programs

  • Mar 01, 2008
  • Journal of Functional Programming
  • Christian Skalka +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.