You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect generated MyRecordRecord constructor to have argument of type ConcreteType, however this is not the case, Type is set to T and record cannot be compiled.
**Details**
See above
3. Generated record:
```java
@Generated("pl.com.labaj.autorecord.AutoRecord")
@GeneratedWithAutoRecord
@RecordBuilder
@RecordBuilder.Options(
addClassRetainedGenerated = true,
enableWither = false
)
public record MyRecordRecord(T getParam) implements MyRecord {
public MyRecordRecord {
// pl.com.labaj.autorecord.processor.AutoRecordProcessor
requireNonNull(getParam, "getParam must not be null");
}
public static MyRecordRecordBuilder builder() {
return MyRecordRecordBuilder.builder();
}
public MyRecordRecordBuilder toBuilder() {
return MyRecordRecordBuilder.builder(this);
}
}
5. Error during compilation:
java: cannot find symbol
symbol: class T
location: class MyRecordRecord
**Expected behavior**
```java
public record MyRecordRecord(ConcreteType getParam) implements MyRecord
The text was updated successfully, but these errors were encountered:
Describe the bug
Given following set of interfaces:
I would expect generated MyRecordRecord constructor to have argument of type ConcreteType, however this is not the case, Type is set to T and record cannot be compiled.
java: cannot find symbol
symbol: class T
location: class MyRecordRecord
The text was updated successfully, but these errors were encountered: