Skip to content

Conversation

arun-y
Copy link
Contributor

@arun-y arun-y commented Jul 25, 2020

moving to java 11.

UpdatableJdbcRowsetImpl.java depends on com.sun.rowset.JdbcRowSetResourceBundle; which is now considered internal API post Java 9 and oracle doesn't want us to use it. I have temporarily bypassed the check through --add-export argument. Going forward we should move away from this completely.

@arun-y arun-y requested a review from vivek36 July 25, 2020 20:14
@arrah
Copy link
Contributor

arrah commented Jul 25, 2020 via email

@arun-y
Copy link
Contributor Author

arun-y commented Jul 25, 2020

The

--add-exports
java.sql.rowset/com.sun.rowset=ALL-UNNAMED

option in maven by passes the check for internal api. mvn compile will now build bytecode compatible for java 11.

@vivek36
Copy link
Contributor

vivek36 commented Jul 25, 2020

So only pom.xml change is required or some other code change is also required ?

@arun-y
Copy link
Contributor Author

arun-y commented Jul 25, 2020

No code change for now. We are all good. But in future or whenever we have a chance, need to get rid of UpdatableJdbcRowsetImpl.java

Though once we compile with target = 11 in pom. The code will only run in java 11+

@arrah
Copy link
Contributor

arrah commented Jul 25, 2020 via email

@arun-y
Copy link
Contributor Author

arun-y commented Jul 25, 2020

Yeps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants