Java 8 supports annotations of type parameters such as
class SomeBean { Optional<@Base64 String> bs; }
How can this be written in Scala (if possible)? I tried the following (which compiles), but the resulting bytecode does not mention the annotation Base64:
Base64
case class SomeScalaBean(bs: Optional[String @Base64])
Note . If you're interested, the hibernate validator is used, see http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#type-arguments-constraints
Edit : I created a ticket for this - https://issues.scala-lang.org/browse/SI-9883
No one has answered this question yet.
See related questions:
Source: https://habr.com/ru/post/1650576/More articles:Сериализация полей enum spring data solr - spring-data-solrКак перенести статический класс с .NET на .NET Core? - c#Required dependencies for Resolver or ServiceProvider to use ICompositeViewEngine - c #What is the best way to colorize part of a letter? - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1650575/boostasio-fails-to-read-more-than-65536-bytes-from-file&usg=ALkJrhiUMdLaOtUjRvB7tJx9vh2yUIQMPAThe relationship between HTML and javascript. Interface Development Fundamentals - javascriptFirebase database - query by identifier list - androidcell selection ag-grid cellEditor with object values - typescriptСоздание слайдера изображений с помощью UIScrollView в Swift - iosHow to implement aws.sdk.ts file in Typescript? - javascriptAll Articles