You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 9, 2026. It is now read-only.
In version 1.16 of AndroidX "core", Google switched from using their androidx.annotation.NonNull types to new "industry-standard" "JSpecify nullness annotations". (Documentation)
Because generator does not support these annotations, all types that were previously "not-null" now appear to be "nullable".
We will need to extend generator to understand these new annotations to generate correct NRT code, as this is potentially just the beginning of Google migrating the entire AndroidX ecosystem to use them.
Note that these new annotations appear more complex than what we currently support, as you can mark a module/package/class/method as @NullMarked which means all types in that scope are considered "not-null" unless otherwise annotated. Scopes below a @NullMarked scope can additionally be marked as @NullUnmarked which undoes @NullMarked for the annotated scope.
It's an otherwise "normal" .class file, with ThisClass being example/package-info. There could be a package-info.java for each separate package; there is no "inheritance", e.g. annotations on package exampledo not impact package example.nested.
Activity
jonpryor commentedon Jun 3, 2025
Related: 07d5595, which adds parsing of
Moduleinformation.We may also need to add support for parsing
package-info.class; Java allows packages to have annotations, which@NullMarkedsupports, a'la:It's an otherwise "normal"
.classfile, withThisClassbeingexample/package-info. There could be apackage-info.javafor each separate package; there is no "inheritance", e.g. annotations onpackage exampledo not impactpackage example.nested.[Xamarin.Android.Tools.Bytecode] Support JSpecify nullness annotations (