[
https://issues.apache.org/jira/browse/AVRO-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427729#comment-17427729
]
ASF subversion and git services commented on AVRO-3095:
-------------------------------------------------------
Commit 3fe5e306eaa43bdc06cef291321a8c04058a6be9 in avro's branch
refs/heads/dependabot/npm_and_yarn/lang/js/mocha-9.1.2 from Anatoly Kupriyanov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=3fe5e30 ]
AVRO-3095: Handle relative imports in resources (#1157)
* AVRO-3095: Handle relative imports in resources
* AVRO-3095: Clean up code warnings
> 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)