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 used java --add-modules java.xml.bind -classpath jooq-3.11.3.jar;jooq-meta-3.11.3.jar;jooq-codegen-3.11.3.jar;postgresql-42.2.4.jar;. org.jooq.codegen.GenerationTool jooq.xml to autogenerate JOOQ code for my PostgreSQL 10 USER table.
The codegen tool finishes successfully however my program won´t compile because there are several Java syntax errors in the autogenerated code.
Some examples: PgClass.java
/**
* @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using <deprecationOnUnknownTypes/> in your code generator configuration.
*/
@java.lang.Deprecated
public final TableField<PgClassRecord, Object> RELPARTBOUND = createField("relpartbound", , this, "");
The compiler is telling me java: illigal start of expression
PgIndex.java:
/**
* The column <code>pg_catalog.pg_index.indoption</code>.
*/
public final TableField<PgIndexRecord, Object[]> INDOPTION = createField("indoption", .getArrayDataType(), this, "");
The compiler is telling me java: as of release 8, 'this' is allowed as the parameter name for the receiver type only, which has to be the first parameter
jOOQ: 3.11.3
Java: 1.8.0_181
Database (include vendor): PostgreSQL 10
OS: Windows 10
The text was updated successfully, but these errors were encountered:
saibotma
changed the title
Multiple java: illigal start of expression in autogenerated code
Multiple java errors in autogenerated code
Jul 24, 2018
saibotma
changed the title
Multiple java errors in autogenerated code
Cannot compile autogenerated code because of multiple java errors
Jul 24, 2018
I used
java --add-modules java.xml.bind -classpath jooq-3.11.3.jar;jooq-meta-3.11.3.jar;jooq-codegen-3.11.3.jar;postgresql-42.2.4.jar;. org.jooq.codegen.GenerationTool jooq.xml
to autogenerate JOOQ code for my PostgreSQL 10USER
table.The codegen tool finishes successfully however my program won´t compile because there are several Java syntax errors in the autogenerated code.
Some examples:
PgClass.java
The compiler is telling me
java: illigal start of expression
PgIndex.java:
The compiler is telling me
java: as of release 8, 'this' is allowed as the parameter name for the receiver type only, which has to be the first parameter
The text was updated successfully, but these errors were encountered: