You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Christopher Smith (Jira)" <ji...@apache.org> on 2023/11/17 20:47:00 UTC

[jira] [Created] (GROOVY-11226) Stub generator doesn't generate property accessors

Christopher Smith created GROOVY-11226:
------------------------------------------

             Summary: Stub generator doesn't generate property accessors
                 Key: GROOVY-11226
                 URL: https://issues.apache.org/jira/browse/GROOVY-11226
             Project: Groovy
          Issue Type: Bug
          Components: Stub generator / Joint compiler
    Affects Versions: 4.0.15
            Reporter: Christopher Smith


I have a Java interface

{code:java}
public interface Foo {
  Bar getBar();
}
{code}

and a Groovy class

{code:groovy}
@TupleConstructor
class FooImpl implements Foo {
  final Bar bar
}
{code}

The generated stub does not include the {{Bar getBar()}} property accessor, which causes the stub compilation to fail.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)