ceylon-sdk icon indicating copy to clipboard operation
ceylon-sdk copied to clipboard

rewrite RecoveryHelper and RecoveryXAResource in Ceylon

Open gavinking opened this issue 10 years ago • 6 comments

@mmusgrove I can't see any reason why these classes need to be written in Java. It should be easy to port them to Ceylon, don't you think?

gavinking avatar Oct 13 '15 13:10 gavinking

So with the help of Paste Java as Ceylon, I did this port quickly. But I ran into a couple of what look like backend bugs. I've pushed the work to a branch so @tombentley and @FroMage can take a look.

gavinking avatar Oct 13 '15 14:10 gavinking

@FroMage the message I'm getting is this:

Could not determine type of method or attribute reference: xaResource of XAConnection: Error while loading the java.jdbc/8 module:
 Declaration javax.transaction.xa.XAResource could not be found in module java.jdbc or its imported modules but was found in the non-imported module javax.transaction.api

Is this related to the stuff you're already looking at?

gavinking avatar Oct 13 '15 15:10 gavinking

Yes that's related: javax.transaction (from JDK) and javax.transaction.api contain the same packages and classes (except the latter is a superset of the former).

FroMage avatar Oct 13 '15 15:10 FroMage

@FroMage cool, what I figured.

gavinking avatar Oct 13 '15 15:10 gavinking

No, not cool. The opposite of cool in fact.

FroMage avatar Oct 13 '15 15:10 FroMage

I have moved the issue to 1.3 because it's a nightmare to fix and may require us to suppose split packages in the compiler.

FroMage avatar Oct 13 '15 16:10 FroMage