Refining The Return Type Of Java Methods Without Breaking Backwards-Compatibility

This page summarizes the projects mentioned and recommended in the original post on /r/java

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • bridge-method-injector

    Generates synthetic bridge methods with different return types to help backward compatibility

  • This is an important technique for evolving APIs. I previously used Kohsuke's Bridge Method Injector for this task. I kind of prefer the annotation based approach to the name mangling used by this solution. The only complication was ensuring that the annotation jar was excluded from the final runtime.

  • OverloadReturn

    Bytecode rewriter that creates overloads of methods which vary only by return type.

  • Nice I've never seen this one. I wrote one that's similar: https://github.com/JakeWharton/OverloadReturn

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts