Questions tagged [backwards-compatibility]

Backward compatibility refers to a software or hardware system that can successfully use interfaces and data from earlier versions of the system.

Filter by
Sorted by
Tagged with
2 votes
1 answer
62 views

How to add new pure virtual method to class in a migration-friendly way?

Situation: We have a C++ library "L" with a class X that has already some pure virtual methods. The library "L" provides all derived classes for X that are needed in production ...
Dirk Herrmann's user avatar
0 votes
0 answers
24 views

Detect and reject breaking changes to DB Schema

Is there a way to detect changes in a DB schema as "breaking changes"? Imagine I create a migration which adds a column to a table. This is a non-breaking change, and should be allowed. ...
Gargoyle's user avatar
1 vote
0 answers
31 views

How to enable backwards compatibility but make sure my library works on a newer version of java

I am helping a library upgrade to Java 11 and 17, but the library must still work with Java 8. Is there a way to do this so that the compiler/tests will catch any regressions? It seems that toolchains ...
Justin Pihony's user avatar
0 votes
2 answers
87 views

How to find the supported backward compatibility versions of java?

Is it possible to find all the supported backward compatible Java versions supported by currently installed JDK through command line? I was going through command line options, but I couldn't find any ...
bprasanna's user avatar
  • 2,423
0 votes
0 answers
32 views

What is an absolute and long-lasting time reference for my computer?

I'm coding a time capsule app in C++. One key feature it needs is to be able to check the date and time with total certainty, most definitely from a trusted (official?) online server (which one?). ...
Luca T. Castrillón's user avatar
2 votes
0 answers
42 views

Find when a symbol was added to or removed from the Linux kernel

When writing an out-of-tree Linux kernel module, it's hard to keep up with changes to the kernel. Sometimes a symbol or function is deprecated or removed. I use ifdeffery to check the kernel version ...
Reinstate Monica's user avatar
2 votes
1 answer
228 views

How can you safely change a protobuf "oneof"?

At some point, we (regrettably) defined a protobuf type like this: message Parent { oneof foo_or_bar { Foo foo = 1; Bar bar = 2; } } What I want to end up with is something like message ...
PapaFreud's user avatar
  • 3,696
0 votes
1 answer
40 views

Flutter Hive backwards compatibility

I'm using hive for locally caching. In the application I have an I hive object named user. class UserModel extends HiveObject implements Copyable<UserModel> { UserModel({ required this.id, ...
Febin Johnson's user avatar
0 votes
0 answers
40 views

Decoding problems in polkadot-js after updating of substrate version

Recently I updated substrate version in our project from monthly-2022-09 to monthly-2022-12. After that in out webapp that uses polkadot-js/api I got a decoding error on attempt to query fee details ...
foo's user avatar
  • 1
0 votes
2 answers
206 views

Spring Boot - Java: Check backward compatibility of two given APIs by comparing two openapi contract files

I have a spring boot application and there I receive openapi contract files from the client side. So, I have to compare the newly received contract file with the latest contract file (from the DB) and ...
Dilanka Rathnayake's user avatar
3 votes
2 answers
70 views

In go, is it backwards compatible to change a receiver struct from a value to a pointer?

Starting with code like: type Foo struct { V bool } func (f Foo) bar() bool { return f.V } Is it allowed to change to func (f *Foo) bar() bool without incrementing the major version number? ...
Fsmv's user avatar
  • 1,116
0 votes
1 answer
174 views

java.time.Instant.now has more precision in java 11 compared to java 8 and how to get backward compatible

I've below code in java import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; ...
user51's user avatar
  • 9,109
2 votes
1 answer
216 views

C++17 alternative implementation for std::transform_reduce

Im working on a project which was developed using c++20 standard ,but I need to build it on an old embedded linux device which the highest available standard is c++17(gcc 8.3.0). analyzing the code ...
Amir Rasti's user avatar
0 votes
0 answers
24 views

How to add property to a custom attribute in a "binary" backward compatible way

Originally I have the following attribute class CustomAttributeAttribute : Attribute { } With usage like [CustomAttribute] public void Method() { ... } Then I need to add a boolean property to the ...
max630's user avatar
  • 8,870
0 votes
0 answers
28 views

Microservices: Maintaining compatibility for model classes between old and new jar versions as we're growing [duplicate]

I'm working on a microservices architecture, I have an old jar version v1.2 and a new jar version v1.6. I have added new fields and models classes to v1.6 which are not present in v1.2. For example: ...
log0's user avatar
  • 2,254
0 votes
0 answers
44 views

Backward compatibility of template code in g++

g++ 11.3.0 can't compile this code: template <typename T> class Foo { public: Foo<T>() {} }; Error is expected unqualified-id before ‘)’ token One way to fix it is correcting Foo<...
JohnIv's user avatar
  • 21
0 votes
0 answers
111 views

How to make output type change backwards compatible?

I frequently run into situations when I need to evolve my queries to return a more complex type. For example, currently, I have: updateUser(user: User): Long # returns user id and need to return more ...
David Kubecka's user avatar
1 vote
1 answer
283 views

Why doesn't Microsoft provide support for older browsers and Blazor WASM

I've built my site using Blazor WASM. I need to provide guidance to our call center when a user calls and asks whether the site works in Chrome version xyz etc. Microsoft supports the "Current&...
Kye's user avatar
  • 5,979
2 votes
0 answers
33 views

How to test for backward incompatibility in a distributed system?

We have a Java-based distributed system in which two nodes communicate with each other. Due to regulations, we can't deploy to both regions at the same time. One node can have code that is a couple of ...
Muhammad's user avatar
0 votes
1 answer
602 views

Is there a backwards compatible method for changing the return type of a GraphQL Mutation?

I have a GraphQL project where many of the mutations return a simple boolean for success (union'ed with an error type). # An object wrapper for a un/successful mutation result type MutationResult { ...
Patrick M's user avatar
  • 10.6k
5 votes
1 answer
144 views

C2x: what is the rationale for alignas to be a keyword rather than a macro?

In 1990 P.J. Plauger wrote (emphasis added): Standard C offers you an additional level of security, however. It is a level offered in no other language standard that I know. It promises that if you ...
pmor's user avatar
  • 5,625
0 votes
0 answers
46 views

How should I handle Android API nullability contract changes while supporting backwards compatibility?

I recently ran into a crashlytics report that was quite confusing (seems related to GestureDetector.OnGestureListener overridden methods for Android API 33 makes my application crash (Kotlin) but my ...
CCJ's user avatar
  • 1,649
1 vote
0 answers
35 views

Mark version for backward compatibility execution of test cases

I have a set of test cases, some of them have evolved as the software releases came out. I need to maintain backward compatiility, so I need to be able to execute all tests compatible with a specific ...
lagarkane's user avatar
  • 915
3 votes
1 answer
3k views

Failed to find compatible Java Version, Jenkins

I'm currently trying to install jenkins but i'm having issues with Java version. It is saying it failed to find compatibility java version. When it's correct. (image below) I've also check what java ...
CoolDude's user avatar
  • 131
0 votes
1 answer
1k views

How can I validate a new JSON schema is backward compatible with previous one?

My question is regarding backwards-compatibility between the new schema and existing data represented in earlier versions of the schema. Is there a library which compares 2 JSON schemas and validates ...
Luke's user avatar
  • 57
0 votes
1 answer
233 views

Is Babel used to produce backward or forward compatible Javascript code?

I have been reading through a book called You don't know JS and one thing that I can't wrap my head around is the concept of backward compatible and forward compatible Javascript. From what I ...
Zerro97's user avatar
1 vote
1 answer
904 views

BinaryFormatter serialized object from .NET Framework 4.8 won't deserialize in .NET 6

I'm adapting a older application written in .NET Framework 4.8 to .NET 6 due to a new version of an API that it uses. There is unchanged logic that serializes and deserializes models created by the ...
ijk's user avatar
  • 47
0 votes
0 answers
59 views

What are the consequences of compiling for an older Java version?

I'm trying to make a simple game in Java and sent a very basic draft of the GUI to a couple friends. They had to install the latest JDK to be able to run the .jar, since what I had made (using the ...
Orion's user avatar
  • 85
0 votes
1 answer
94 views

Can C++-modules be consumed by non-modularized code?

I have a rather large codebase, that I want to start porting to C++20-modules. The layout is (roughly) like this: SDK/System > Engine > Editor In the order of they reference each other (editor ...
Juliean's user avatar
  • 173
1 vote
1 answer
203 views

SDL2 Backward Compatibility Guarantees?

SDL2 is often described as breaking backwards compatibility with SDL 1.2. This implies that within different versions of SDL2, the API and ABI remain backwards-compatible. However, I have not been ...
Will Chen's user avatar
  • 482
3 votes
1 answer
103 views

How did type erasure in Java protect backward compatibility?

I've been learning Java generics recently, and I got to know that the reason Java adopted the type erasure approach to implementing generics is to ensure backward compatibility. But I don't quite ...
Perry_Y_Z's user avatar
-1 votes
1 answer
1k views

Simple way to make python 3.10 code compatible for python 3.9 and below to use match

I am looking for a simple way to make my code compatible for both python 3.10 and below. Toy-Example: class MatchSomething # for 3.10 def match_matcher(self, input=23) match input: ...
python444444's user avatar
0 votes
1 answer
86 views

PROPERTY_REMOVED_FROM_CLOSED_CONTENT_MODEL for optional field

Use draft-7 json schema CLOSED_CONTENT_MODEL and BACKWARD compatibility and confluent schema registry 7.2.1-post. deps: implementation 'com.github.victools:jsonschema-generator:4.26.0' ...
ViktorZharina's user avatar
2 votes
2 answers
1k views

Handling code duplication in API versioning .NET Core

I'm currently trying to support API versioning using .NET Core API. I have read many articles about the matter , Couldn't find a really good code examples for it. Everyone is posting about the ...
Jack's user avatar
  • 107
1 vote
0 answers
84 views

JSON backward compatibility read/write

I am looking for help in reading/writing of JSON string in my DB in a backward compatible way. The JSON names and objects are in case class FeatureList. Old format: "featureRequired":"...
user19617914's user avatar
0 votes
0 answers
59 views

SwiftUI backwards compatibility with WatchOS 6: how to write body?

If I create a brand new xCode project with a WatchKit extension this is what I get created by default in the main app file: struct WorkoutApp: App { @available(watchOSApplicationExtension 7.0, *) ...
Ramy Al Zuhouri's user avatar
0 votes
0 answers
505 views

Does angular 14 version's mfe work with angular 12 version's shell application?

We have a microfrontend which is currently on angular 12. This microfrontend is being used in multiple shells apps (all of them currently on angular 12). We are looking to upgrade the microfrontend ...
Thuti Navnaneeth Reddy's user avatar
0 votes
1 answer
100 views

How to give more importance to one class within a batch when training the model

I have five classes to train and would like one of my models to prioritize class 3 when training, so that the class 3 can get higher accuracy when predicting, how could I code that in pytorch?
Joey's user avatar
  • 13
0 votes
2 answers
49 views

getNameByAlias removed in Ext JS 5

Currently a Ext JS 4 uses getNameByAlias of https://docs.sencha.com/extjs/4.2.6/#!/api/Ext.ClassManager in its code to map database dynamic alias configurations to class matching to it. Application ...
João's user avatar
  • 2,306
0 votes
0 answers
89 views

Does MIPS III really take advantage of binary backwards compatibility

I read some articles about MIPS, and they said that MIPS III is a backwards compatible extension of MIPS II, which means a legal MIPS II program is also an legal MIPS III program and should have the ...
delphifirst's user avatar
  • 1,791
0 votes
1 answer
84 views

Instantiate different versions of same class with changed constructor and "abstract" modifier

I am writing a Java program which uses external libraries. I want to write my code so it is compatible with two different versions of one specific library. The problem is, they changed a class (called ...
Olitrax's user avatar
  • 13
0 votes
1 answer
68 views

Typescript + snowpack is outputting nullish coalescing operators in target < ES2020

I'm trying to compile my typescript code/packages to be compatible with Safari Version < 14. From what I've found, this means no nullish coalescing operators (??) allowed. It seems that the support ...
Dabe's user avatar
  • 13
2 votes
1 answer
1k views

Do oneof fields show up on the wire? Is it safe to move a field _out of_ a oneof

https://developers.google.com/protocol-buffers/docs/proto3#oneof doesn't explicitly say that oneofs don't show up on the wire (and it's members are like optional fields), but it heavily hints at it. ...
David Spies's user avatar
0 votes
0 answers
37 views

Do libraries written in a new version of Java work with older versions of Java? [duplicate]

If I write a library in a new version of Java, 17 for example, will it work with an older version of Java, 8 or 11 for example? If there are some steps to make it work (like compiler settings), what ...
matj1's user avatar
  • 158
0 votes
2 answers
662 views

Does header file import modules a standard thing?

C++ 20 modules guaranteed backward compatible so modules can import headers. And Visual Studio introduced header file import modules,is this stardard or just a VS thing? // MyProgram.h import std.core;...
bitnick's user avatar
  • 1,933
0 votes
2 answers
178 views

Backward-compatible SQL query against table with renamed and added column

Let t be an Oracle 11g table with columns a, b. The b column is later renamed to c and new d column is added. How to develop an SQL query which works against both database versions? "Works" ...
Tomáš Záluský's user avatar
2 votes
2 answers
300 views

Backward-compatible SQL query against table with renamed column

Let t be an Oracle 11g table with columns a, b. The b column is later renamed to c. How to develop an SQL query which works against both database versions? "Works" means: returns columns a, ...
Tomáš Záluský's user avatar
1 vote
0 answers
122 views

Can a proto3 scalar field be changed to optional without breaking wire compatibility?

Can I change a scalar field in proto3 to optional, e.g. message UpdateAccountRequest { string name = 1; string country = 2; } to message UpdateAccountRequest { optional string name = 1; ...
Andrew Cheong's user avatar
0 votes
1 answer
506 views

Apache Thrift 0.15.0 compatibility with 0.13.0

I'm upgrading my Apache Thrift from version 0.13.0 to 0.15.0 because of vulnerability CVE-2020-13949. But I need to comunicate with another system using Thrift that I'm not managing and couldn't ...
Danilo Lerda's user avatar
1 vote
0 answers
665 views

How do I test whether a given SQL Syntax is valid for an older version of SQL Server

I regularly end up developing on projects where either the Central Test server, or Prod server is an older version of SQL Server than my local install. e.g. Prod is SQL Server 2014. Local install in ...
Brondahl's user avatar
  • 7,632

1
2 3 4 5
22