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
feat(javagen): generate Java adapter classes for abstract callback classes
The specgen now detects abstract classes (e.g. ScanCallback,
BluetoothGattCallback) and emits abstract_callbacks entries in the YAML
specs. The javagen reads these entries and generates Java adapter classes
that extend the abstract class, delegating all methods to
GoAbstractDispatch.invoke(handlerID, methodName, args). The generated
adapters are placed in a java/ subdirectory alongside the Go output and
follow the center.dx.jni.generated package convention.
The adapter naming (SimpleClassName + "Adapter") matches the naming
convention that tryAbstractAdapter in proxy.go already searches for,
so no changes to the runtime proxy fallback logic are needed beyond
adding a secondary search pattern.
0 commit comments