Re: [ljc] Cross-JDK compatibility issue

From: James G.
Sent on: Thursday, October 18, 2012 3:42 PM
I've not looked code-deep yet as it is a unit test inherited from long ago. The test ensures that despite there being two references to the same object, only one copy of that object exists, but two objects exists on 32 bit openjdk7. That's my reading of it anyway.

The failing build log: https://travis-ci.org/#!/jmkgreen/morphia/jobs/2830136
The test: https://github.com/jmkgreen/morphia/blob/master/morphia/src/test/java/com/github/jmkgreen/morphia/TestMapper.java

I'll read it more thoroughly before I decide who to blame!

Thanks,

James

On 18 October 2012 10:00, Neil Bartlett <[address removed]> wrote:
So... what's the error?

There are many known incompatibilities between Sun/Oracle JDK and OpenJDK, even in supposedly the same version of each. So without some more details from you, any further response would be little more than guesswork.

Regards,
Neil


On Thu, Oct 18, 2012 at 7:10 AM, James Green <[address removed]> wrote:
So I've forked an open source project and put it on Github. Travis-CI is employed, but I've hit a snag:

- OracleJDK7 and OpenJDK6 pass green
- OpenJDK7 fails a test, consistently the same one

I'm on OS X 10.7.5 with Oracle's latest and greatest, and an OpenJDK from the google-code site. I cannot reproduce the problem locally.

The only thing I've found in searching for clues is that OpenJDK is apparently a bit dodgy in 32-bit forms. Travis appears to be 32-bit.

As an engineer I'm looking for a solution. As someone with a few month's experience with Java / Maven / etc, I am rather lost at this point.

Explaining that "it works except on 32-bit OpenJDK7" in the readme would suck... Can anyone offer advice/assistance to help avoid that?

Thanks,

James





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by James Green ([address removed]) from LJC - London Java Community.
To learn more about James Green, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York 10163-4668 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Neil Bartlett ([address removed]) from LJC - London Java Community.
To learn more about Neil Bartlett, visit his/her member profile

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference, in collaboration with the LJC 12/13 Jun 14

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • Atlassian

    See here for details - http://www.atlassian.com/

  • Packt Publishing

    A publishing company specializing on specific technologies and solutions

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy