groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OC <...@ocs.cz>
Subject Weird capitalization for setters/getters just again...
Date Fri, 12 Jun 2015 16:08:51 GMT
Hello there,

is this the proper result?

===
29 /tmp> <q.groovy      
class Foo {
  def aItem
}
30 /tmp> groovyc q.groovy
31 /tmp> javap Foo
Compiled from "q.groovy"
public class Foo implements groovy.lang.GroovyObject {
...
  public java.lang.Object getaItem();
  public void setaItem(java.lang.Object);
...
}
32 /tmp> 
===

I would (actually did and my app crashed as a result) presume the getter/setter should be
named "getAItem", "setAItem". Is this another trick of those bloody beans?

Thanks for any insight,
OC


Mime
View raw message