Thanks for the explanation.. Obviously I haven't been following the criteria API that closely ; -)
-mike On Wed, Apr 29, 2009 at 2:56 PM, Pinaki Poddar <[email protected]> wrote: > > Hi Mike, > ExplicitFieldAccess_.java happens to be auto-generated from annotated > ExplicitFieldAccess.java. > According to JPA 2.0, ExplicitFieldAccess_.java is the 'canonical > metamodel' > of ExplicitFieldAccess.java. > A facility AnnotationProcessor6 is now added to OpenJPA that generates > these > *_.java files. > > > > A testcase for AnnotationProcessor6 named TestCanonicalMetamodelGeneration > had generated these *_.java as part of testing. And to test whether the > generation process was accurate -- we had to compile these *_.java files. > JDK6 has made it possible to invoke javac compiler programmatically, and > that's what the test used. However, to make the test run successfully both > within the test development environment of Eclipse IDE and TeamCity's > surefire/maven test environment, programmatic compiler's classpath has to > be tuned appropriately. > The test case should have cleaned these auto-generated files in its > tearDown() but it did not. > > Anyway, I had simply kept the test out in my recent SVN checkin. Once the > meta-model development somewhat stabilizes, I will reintroduce this test. > > > > Michael Dick wrote: > > > > The source files seem oddly named. ExplicitFieldAccess_.java. Could be a > > cut > > and paste artifact or something like ExplicitFieldAccess.java.rej|.orig > if > > the MacOS SVN client you're using behaves differently from CollabNet's > > CLI.. > > > > > > Sorry, those are my best guesses. > > > > -mike > > > > On Wed, Apr 29, 2009 at 1:49 PM, Pinaki Poddar <[email protected]> > wrote: > > > >> > >> If you saw test failures (as opposed to compilation failure), it may > have > >> been caused by a test case which was moved from openjpa-persistence to > >> openjpa-persistence-jdbc > >> > >> > >> DWoods wrote: > >> > > >> > Well, just tried a clean checkout and everything is building fine.... > >> > Not sure what was left behind after a "mvn clean", as svn status > didn't > >> > show any modifications in the openjpa-persistence directory. > >> > > >> > > >> > -Donald > >> > > >> > > >> > Donald Woods wrote: > >> >> Start of the build failure with JDK 6 on MacOSX - > >> >> > >> >> INFO] Compiling 11 source files to > >> >> /Users/drwoods/openjpa/trunk/openjpa-persistence/target/test-classes > >> >> [INFO] > >> >> > >> ------------------------------------------------------------------------ > >> >> [ERROR] BUILD FAILURE > >> >> [INFO] > >> >> > >> ------------------------------------------------------------------------ > >> >> [INFO] Compilation failure > >> >> > >> >> > >> > /Users/drwoods/openjpa/trunk/openjpa-persistence/src/test/java/org/apache/openjpa/persistence/meta/ExplicitFieldAccess_.java:[12,37] > >> >> cannot find symbol > >> >> symbol : class ExplicitFieldAccess > >> >> location: class > >> org.apache.openjpa.persistence.meta.ExplicitFieldAccess_ > >> >> > >> >> > >> > /Users/drwoods/openjpa/trunk/openjpa-persistence/src/test/java/org/apache/openjpa/persistence/meta/ExplicitFieldAccess_.java:[13,37] > >> >> cannot find symbol > >> >> symbol : class ExplicitFieldAccess > >> >> location: class > >> org.apache.openjpa.persistence.meta.ExplicitFieldAccess_ > >> >> > >> >> > >> >> > >> >> > >> >> Donald Woods wrote: > >> >>> I just updated to Rev769801 and I'm seeing build failures in the > >> >>> openjpa-persistence tests now with Java 5 and 6. > >> >>> > >> >>> > >> >>> -Donald > >> >>> > >> >>> > >> >>> David Ezzio wrote: > >> >>>> Hi Pinaki, > >> >>>> > >> >>>> This is fixed for me starting at 769549. > >> >>>> > >> >>>> Thanks, > >> >>>> > >> >>>> David > >> >>>> > >> >>>> David Ezzio wrote: > >> >>>>> At 769478: > >> >>>>> > >> >>>>> [INFO] Compiling 12 source files to > >> >>>>> > C:\code\svn\RW_OpenJPATrunk\openjpa-persistence\target\test-classes > >> >>>>> [INFO] > >> >>>>> > >> ------------------------------------------------------------------------ > >> >>>>> > >> >>>>> [ERROR] BUILD FAILURE > >> >>>>> [INFO] > >> >>>>> > >> ------------------------------------------------------------------------ > >> >>>>> > >> >>>>> [INFO] Compilation failure > >> >>>>> > >> >>>>> > >> > C:\code\svn\RW_OpenJPATrunk\openjpa-persistence\src\test\java\org\apache\openjpa\persistence\meta\TestCanonicalMetamodelGeneration.java:[14,35] > >> >>>>> package javax.annotation.processing does not exist > >> >>>>> > >> >>>>> etc. > >> >>>>> > >> >>>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > >> >>>>> > >> >>>>> At 769497: > >> >>>>> > >> >>>>> > >> >>>>> [INFO] Compiling 193 source files to > >> >>>>> C:\code\svn\RW_OpenJPATrunk\openjpa-persistence\target\classes > >> >>>>> [INFO] > >> >>>>> > >> ------------------------------------------------------------------------ > >> >>>>> > >> >>>>> [ERROR] BUILD FAILURE > >> >>>>> [INFO] > >> >>>>> > >> ------------------------------------------------------------------------ > >> >>>>> > >> >>>>> [INFO] Compilation failure > >> >>>>> > >> >>>>> > >> > C:\code\svn\RW_OpenJPATrunk\openjpa-persistence\src\main\java\org\apache\openjpa\persistence\meta\SourceAnnotationHandler.java:[29,35] > >> >>>>> package javax.annotation.processing does not exist > >> >>>>> > >> >>>>> etc. > >> >>>>> > >> >>>> > >> >>> > >> >> > >> > > >> > > >> > >> > >> ----- > >> Pinaki Poddar http://ppoddar.blogspot.com/ > >> > >> http://www.linkedin.com/in/pinakipoddar > >> OpenJPA PMC Member/Committer > >> JPA Expert Group Member > >> -- > >> View this message in context: > >> > http://n2.nabble.com/Compile-failures-starting-at-revs-769478-and-769497-tp2736621p2742510.html > >> Sent from the OpenJPA Developers mailing list archive at Nabble.com. > >> > >> > > > > > > > ----- > Pinaki Poddar http://ppoddar.blogspot.com/ > > http://www.linkedin.com/in/pinakipoddar > OpenJPA PMC Member/Committer > JPA Expert Group Member > -- > View this message in context: > http://n2.nabble.com/Compile-failures-starting-at-revs-769478-and-769497-tp2736621p2742954.html > Sent from the OpenJPA Developers mailing list archive at Nabble.com. > >
