Skip to content

gapic-generator-java: discrepancy in writers handling deeply nested types #1708

@emmileaf

Description

@emmileaf

Suppose nested type Outer.Middle.Inner: in some scenarios the generated code will not compile because of nesting level mismatch between type and import:

// from ImportWriterVisitor
import com.google.testgapic.v1beta1.Outer.Middle; 

// from JavaWriterVisitor
Outer.Middle.Inner myVariable; 

There are possibly other discrepancies with nested class handling (e.g. for ConcreteReference vs. VaporReference) to be investigated. (See f505036 for additional tests illustrating unintended behavior)

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions