Skip to content

Commit

Permalink
Fix jruby#7117. java_signature throws NPE when using default annotati…
Browse files Browse the repository at this point in the history
…on arguments
  • Loading branch information
enebo committed Feb 24, 2022
1 parent 11df3f7 commit 5e05d77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/
public class DefaultAnnotationParameter extends AnnotationParameter {
public DefaultAnnotationParameter(AnnotationExpression expr) {
super(null, expr);
super("value", expr);
}

@Override
public String toString() {
return getExpression().toString();
Expand Down
3 changes: 3 additions & 0 deletions spec/java_integration/reify/annos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def bar; end

def baz; end

java_signature("@java.lang.SuppressWarnings(\"unchecked\") void biz()")
def biz; end

become_java!
end

Expand Down

0 comments on commit 5e05d77

Please sign in to comment.