[
https://issues.apache.org/jira/browse/AVRO-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427713#comment-17427713
]
ASF subversion and git services commented on AVRO-3095:
-------------------------------------------------------
Commit 14b381b576f9ceb86062f6e68708cc3343abf869 in avro's branch
refs/heads/dependabot/npm_and_yarn/lang/js/tmp-0.2.1 from Martin Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=14b381b ]
AVRO-3095 Handle "classpath" resources only if resourceLoader is not null
(#1349)
> 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
> Assignee: Anatoly Kupriyanov
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.0
>
> Time Spent: 40m
> 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)