
| Key: |
NUCMAVEN-26
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Won't Fix
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Raman Gupta
|
| Votes: |
0
|
| Watchers: |
2
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
When running the datanucleus:enhance command twice, the build results in a java.lang.Verify error:
[INFO] --- maven-datanucleus-plugin:3.0.1:enhance (default-cli) @ edel-model-test ---
[INFO] DataNucleus Enhancer (version 3.0.1) : Enhancement of classes
[ERROR] --------------------
[ERROR] Standard error from the DataNucleus tool + org.datanucleus.enhancer.DataNucleusEnhancer :
[ERROR] --------------------
[ERROR] Dec 10, 2011 9:32:12 PM org.datanucleus.enhancer.DataNucleusEnhancer <init>
INFO: DataNucleus Enhancer : Using ClassEnhancer "ASM" for API "JDO"
Dec 10, 2011 9:32:12 PM org.datanucleus.enhancer.DataNucleusEnhancer main
INFO: DataNucleus Enhancer (version 3.0.1) : Enhancement of classes
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 18 in method com.vivo.project.model.test.Foo.jdoMakeDirty(Ljava/lang/String;)V at offset 4
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getDeclaredMethods(Class.java:1808)
at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getJavaBeanAccessorAnnotationsForClass(AbstractAnnotationReader.java:306)
at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java:143)
at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java:171)
at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java:2459)
at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java:487)
at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:799)
at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:590)
at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1390)
Normally, one wouldn't run datanucleus:enhance twice manually, but when building a project using the "package" or "install" commnands (which may very well be run without doing a "clean" first), the datanucleus:enhance command is also run, and therefore the build fails with java.lang.Verify.
|
|
Description
|
When running the datanucleus:enhance command twice, the build results in a java.lang.Verify error:
[INFO] --- maven-datanucleus-plugin:3.0.1:enhance (default-cli) @ edel-model-test ---
[INFO] DataNucleus Enhancer (version 3.0.1) : Enhancement of classes
[ERROR] --------------------
[ERROR] Standard error from the DataNucleus tool + org.datanucleus.enhancer.DataNucleusEnhancer :
[ERROR] --------------------
[ERROR] Dec 10, 2011 9:32:12 PM org.datanucleus.enhancer.DataNucleusEnhancer <init>
INFO: DataNucleus Enhancer : Using ClassEnhancer "ASM" for API "JDO"
Dec 10, 2011 9:32:12 PM org.datanucleus.enhancer.DataNucleusEnhancer main
INFO: DataNucleus Enhancer (version 3.0.1) : Enhancement of classes
Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame at branch target 18 in method com.vivo.project.model.test.Foo.jdoMakeDirty(Ljava/lang/String;)V at offset 4
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getDeclaredMethods(Class.java:1808)
at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getJavaBeanAccessorAnnotationsForClass(AbstractAnnotationReader.java:306)
at org.datanucleus.metadata.annotations.AbstractAnnotationReader.getMetaDataForClass(AbstractAnnotationReader.java:143)
at org.datanucleus.metadata.annotations.AnnotationManagerImpl.getMetaDataForClass(AnnotationManagerImpl.java:171)
at org.datanucleus.metadata.MetaDataManager.loadAnnotationsForClass(MetaDataManager.java:2459)
at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java:487)
at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:799)
at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:590)
at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1390)
Normally, one wouldn't run datanucleus:enhance twice manually, but when building a project using the "package" or "install" commnands (which may very well be run without doing a "clean" first), the datanucleus:enhance command is also run, and therefore the build fails with java.lang.Verify.
|
Show » |
Sort Order:
|
Note that this issue appears to be specific to having a source/target setting in maven-compiler-plugin of 1.7. When changing the compiler source/target to 1.6, the issue goes away, even when running on JDK7.