Issue Details (XML | Word | Printable)

Key: NUCENHANCER-81
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 2
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
DataNucleus Enhancer

Support JDK1.7+ (requires ASM v4)

Created: 11/Dec/11 08:32 AM   Updated: 14/Mar/12 03:12 PM
Component/s: ASM Enhancer
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
At some point we need to support JDK1.7+ usage. This requires ASM v4 which was recently released

Sort Order: Ascending order - Click to sort in descending order
Mike added a comment - 14/Mar/12 02:07 PM
The log says the enhancement succeeds:
2012-03-14 14:01:33,531 INFO [DataNucleus.Enhancer] - <DataNucleus Enhancer : Using ClassEnhancer "ASM" for API "JDO">
2012-03-14 14:01:33,753 INFO [DataNucleus.Enhancer] - <DataNucleus Enhancer (version 3.0.1) : Enhancement of classes>
DataNucleus Enhancer (version 3.0.1) : Enhancement of classes
2012-03-14 14:01:34,999 INFO [DataNucleus.Enhancer] - <Writing class file "/home/www/../entity/...class" with enhanced definition>
....

But the class files seem corrupted when running a test:
Tests in error:
  testAddLogon(sw.FindLoginTest): Expecting a stackmap frame at branch target 20 in method sw.entity.Login.jdoIsTransactional()Z at offset 4

Any timeline on this?

Thanks,
Mike

Andy Jefferson added a comment - 14/Mar/12 03:12 PM
No estimates, and indeed no estimates are ever given for unfunded work. You could look at
http://veerasundar.com/blog/2012/01/java-lang-verifyerror-expecting-a-stackmap-frame-at-branch-target-jdk-7/
and include some obscure VM argument. Alternatively contribute time/donations for this to be done.