[
https://issues.apache.org/jira/browse/AVRO-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated AVRO-3095:
---------------------------------
Labels: pull-request-available (was: )
> Unable to resolve relative imports in resources
> -----------------------------------------------
>
> Key: AVRO-3095
> URL: https://issues.apache.org/jira/browse/AVRO-3095
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.10.2
> Reporter: Anatoly Kupriyanov
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If an imported avdl file is inside a classpath resource, then relative
> imports don't work. Example:
> these files should be packaged inside .jar and be on the classpath:
> {code}
> // OnTheClasspath.avdl
> protocol OnTheClasspath {
> import idl "folder/relativePath.avdl";
> }
> // folder/relativePath.avdl
> @namespace("org.on.the.classpath")
> protocol OnTheClasspathDependency {
> import idl "../nestedtypes.avdl";
> }
> // nestedtypes.avdl
> @namespace("org.on.the.classpath")
> protocol OnTheClasspathTypes {
> record NestedType {
> }
> }
> {code}
> In this scenario {{import idl "../nestedtypes.avdl"}} fails.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)