ceylon/ceylon-compiler — Issue #341: Interop: turn setters into methods if no getter exists
Author: FroMage
Created: 2012-01-25 15:34:24+00:00
State: open
Labels: BUG, interoperability, model-loader

There are several classes in the JDK which have old-style getters and new-style setters:

```java
class RandomAccessFile {
int length();
void setLength();
}
```

We currently don't add the `setLength` method to the model and print a warning that is confusing:

> warning: Has conflicting attribute and method name 'length': java.io.RandomAccessFile

I don't think we can assume that `length()` is a valid alternative to `getLength()`, and treat it as an attribute, but we should at least ditch that warning and add the `setLength` method.