Anatoly Kupriyanov created AVRO-3095:
----------------------------------------

             Summary: 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


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)

Reply via email to