Closed zachcp closed 3 years ago
Additional Info from the rJava Changelog.
1.0-5 (under development)
o allow access modifications to fail on JDK-17
== Important note to Java developers:
JDK-17 no longer allows access overrides, so J() wrapper
will fail for cases where the underlying class does
not allow public access. This means that it is no longer
possible to write high-level code that behaves as if it was a
member of the class. Do not upgrade to JDK-17 if that is
important in your application or write a Java wrapper that
exposes the necessary fields/methods as public.
I did a bit of work on this and ran into the classic "setting up a full R+Java dev environment" and got stuck. However, since provisioning in CI is straightforward I setup up GH actions to use JDK17 and run the tests (from this branch). I tried to avoid the use of reflection by getting rid of $
but we're still triggering errors... so there may be deeper issues in the code.
@rajarshi there are only 2 weeks left to submit to updated packages to CRAN without risking package removal. Any chance you can also take a crack at this?
Addressed in #127
A new issue arising for CRAN submission. Checks are finding tests CPU/real time ratio is off. Are some of the underlying JAVA methods defaulting to multicore?
...
* checking examples ... [4s/2s] NOTE
Examples with CPU time > 2.5 times elapsed time
user system elapsed ratio
get.fingerprint 0.934 0.08 0.198 5.121
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ... [8s/2s] OK
Running ‘doRUnit.R’ [8s/2s]
Running R code in ‘doRUnit.R’ had CPU time 3.6 times elapsed time
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking re-building of vignette outputs ... [10s/5s] OK
* checking PDF version of manual ... OK
* ...
Hmm, that shouldn't be as CDK itself is not threadsafe
On Fri, Oct 15, 2021 at 9:15 AM zachcp @.***> wrote:
A new issue arising for CRAN submission. Checks are finding tests CPU/real time ratio is off. Are some of the underlying JAVA methods defaulting to multicore?
...
- checking examples ... [4s/2s] NOTE
Examples with CPU time > 2.5 times elapsed time
user system elapsed ratio
get.fingerprint 0.934 0.08 0.198 5.121
checking for unstated dependencies in ‘tests’ ... OK
checking tests ... [8s/2s] OK
Running ‘doRUnit.R’ [8s/2s]
Running R code in ‘doRUnit.R’ had CPU time 3.6 times elapsed time
checking for unstated dependencies in vignettes ... OK
checking package vignettes in ‘inst/doc’ ... OK
checking re-building of vignette outputs ... [10s/5s] OK
checking PDF version of manual ... OK
...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CDK-R/cdkr/issues/126#issuecomment-944289934, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAIMOPTFMKGISYA5SEGN4DUHASQ3ANCNFSM5EOY4ZBA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
-- Rajarshi Guha | http://blog.rguha.net | @rguha https://twitter.com/rguha
addressed in #127
Package on the way to CRAN. @rajarshi, once you merge #127 can you tag a release for 3.6.0?
I received the following from Brian Ripley:
I can try to look into this over the weekend. Much of the rCDK is compiled so I don't think the affected surface area will be too bad but I expect the use of
$
for convenient reflection will be severely curtailed.zach cp