krakowski edited a comment on pull request #13622:
URL: https://github.com/apache/beam/pull/13622#issuecomment-752154819


   Just to be sure I created a `@Nullable` annotation inside 
`org.apache.beam.sdk.schemas.utils` (which should be on the classpath) and 
replaced `org.apache.avro.reflect.Nullable` with 
`org.apache.beam.sdk.schemas.utils.Nullable`.
   
   ```java
   package org.apache.beam.sdk.schemas.utils;
   
   import java.lang.annotation.Retention;
   import java.lang.annotation.RetentionPolicy;
   
   @Retention(RetentionPolicy.RUNTIME)
   public @interface Nullable {}
   ```
   
   Unfortunately the test is still failing with the same message because 
`method.getParameters()[0].getAnnotatedType().getAnnotations()` is empty.
   
   The funny thing is, I can access this annotation using 
`method.getParameters()[0].getAnnotations()` :thinking: 
   
   [![image](https://i.imgur.com/N0RTnu0.png)](https://i.imgur.com/N0RTnu0.png)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to