Repository navigation
Commit b4f8ffd
committed
Address Gemini review: guard primaryConstructor against empty ctors
If Class.getConstructors() returns empty (e.g. all public constructors
removed in a future Spark version), throw an IllegalStateException with
the class name instead of letting ctors[0] surface as a cryptic
ArrayIndexOutOfBoundsException during static initialization.1 parent 6b39e98 commit b4f8ffd
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
- runners/spark/src/main/java/org/apache/beam/runners/spark/structuredstreaming/translation/helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments