Skip to content

"error overriding method" error when compiling JOOQ generated model #16844

Open
@scf37

Description

@scf37

Compiler version

3.2.0+

before 3.2.0 - fails with "bad constant pool", fixed in 3.2.0

Minimized code

libraryDependencies += ("org.jooq" %% "jooq-scala" % "3.17.7").cross(CrossVersion.for3Use2_13)

import org.jooq.Field
import org.jooq.Record1
import org.jooq.Record6
import org.jooq.Row6
import org.jooq.impl.UpdatableRecordImpl

class ChatRecord extends UpdatableRecordImpl[ChatRecord](null) with Record6[Long, Long, Long, Boolean, Long, Long] {}

Scastie link: https://scastie.scala-lang.org/3ioAIaRaQJ282KS69KugxA

Output

error overriding method fieldsRow in trait Record6 of type (): org.jooq.Row6[Long, Long, Long, Boolean, Long, Long];
  method fieldsRow in class AbstractQualifiedRecord of type (): org.jooq.Row has incompatible type;
other members with override errors are:: method valuesRow, method with, method original

Expectation

Successful compilation

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions