Commit Graph

225 Commits

Author SHA1 Message Date
John Tims
533be55d9a Synchronize class generation to prevent corruption 2014-09-13 14:57:09 -04:00
Timo Westkämper
382bcb816b Bump version 2014-08-18 18:56:45 +03:00
Timo Westkämper
bd9a8abb86 Merge pull request #18 from querydsl/classloaders
Use parent classloaders as well
2014-08-18 18:53:51 +03:00
Timo Westkämper
88e3f436a0 Use parent classloaders as well 2014-08-14 21:46:55 +03:00
Timo Westkämper
d583baf8d5 Update README.md 2014-05-04 14:32:46 +03:00
Timo Westkämper
52abdd209a Update README.md 2014-05-04 14:32:17 +03:00
Timo Westkämper
1314c318dd Make 1.7 the maximum source level 2014-04-29 13:02:59 +03:00
Timo Westkämper
5cf311aef6 Upgrade ecj version 2014-04-29 12:48:45 +03:00
Timo Westkämper
a6ba7cf4bc Fix javadocs 2014-04-29 11:36:16 +03:00
Timo Westkämper
950f5f44ce Add multiple jdks 2014-04-29 11:21:18 +03:00
Timo Westkämper
6caf8fba46 Add travis config 2014-04-28 23:54:08 +03:00
Timo Westkämper
4f4baed0dd Change url 2014-04-28 21:24:29 +03:00
Timo Westkämper
30d75408aa Add support for Java 8 Date Time API #16 2014-04-02 11:51:26 +03:00
Timo Westkämper
c6e8d81cb4 Bump version 2013-10-23 20:34:52 +03:00
Timo Westkämper
4ef7ffbf6a Merge pull request #15 from jtsay362/master
Add CodeWriter.getClassConstant() to abstract the difference between A.class in Java and classOf[A] in Scala.
2013-10-20 23:34:47 -07:00
Timo Westkämper
a81404fc85 Update mysema-source version 2013-10-20 21:15:58 +03:00
jtsay362
8ff357f6d0 Add CodeWriter.getClassConstant() to abstract the difference between A.class in Java and classOf[A] in Scala. To be used in querydsl-codegen shortly. 2013-10-20 10:38:32 -07:00
Timo Westkämper
474c4ac626 Bump version 2013-10-20 12:18:37 +03:00
Timo Westkämper
2218a7de49 Merge pull request #14 from jtsay362/master
Fix Scala constructor to output "def this(...)" instead of "public <CLASSNAME>(...)"
2013-10-20 01:06:19 -07:00
jtsay362
7493e1af30 Fix Scala constructor to output "def this(...\)" instead of "public <CLASSNAME>(...)" 2013-10-20 00:14:21 -07:00
Timo Westkämper
03b1e3114f Create README.md 2013-09-10 23:48:50 +03:00
Timo Westkämper
3c2ce0b2d6 Add .gitignore 2013-07-21 17:54:41 +03:00
Timo Westkämper
483bf252d4 Reenabled spring source plugin repository 2013-04-15 09:17:13 +03:00
Timo Westkämper
707e406ee6 Merge branch 'master' of github.com:mysema/codegen 2013-04-14 14:21:16 +03:00
Timo Westkämper
cc54e5852f Bump version 2013-04-14 14:18:56 +03:00
Timo Westkämper
1c372a859e Merge pull request #11 from mcuelenaere/fix_eval_method
Fix regression: wrong method chosen as evaluator
2013-01-01 11:01:14 -08:00
Maurus Cuelenaere
629affca1c Fix regression: wrong method chosen as evaluator
Some Java instrumentation tools (e.g. JaCoCo) insert code into classes at
runtime. This means that the static eval() method *could* not be the first
method of our runtime generated classes anymore.

Fix this by explicitly looking for the eval() method.
2012-12-24 00:38:33 +01:00
Timo Westkämper
dd37b94ff9 added test 2012-12-20 13:17:39 +02:00
Timo Westkämper
e017835bea move common code to superclass 2012-12-19 19:55:50 +02:00
Timo Westkämper
b2d91a2934 updated version 2012-12-19 19:36:24 +02:00
Timo Westkämper
a1ebd9799f make evaluators use static methods 2012-12-19 11:02:31 +02:00
Timo Westkämper
61f1aa4614 add copyright headers 2012-12-19 10:40:12 +02:00
Timo Westkämper
d717786636 improve reflection usage 2012-12-19 00:19:10 +02:00
Timo Westkämper
f8cb7b97a5 improve reflection usage 2012-12-18 23:53:14 +02:00
Timo Westkämper
4ceb8b379c Merge branch 'master' of github.com:mysema/codegen 2012-11-25 00:25:29 +02:00
Timo Westkämper
439dbe5a31 updated version to 0.5.7 2012-11-25 00:24:59 +02:00
Timo Westkämper
e17db3cec5 Merge pull request #10 from mcuelenaere/fix_jacoco_maven
Fix codegen when using SureFire Booter combined with JaCoCo
2012-11-22 23:57:38 -08:00
Maurus Cuelenaere
0cbed2c757 Fix codegen when using SureFire Booter combined with JaCoCo
When using codegen with SureFire Booter + JaCoCo, codegen was unable to
determine the correct classpath, as its check for SureFire Booter was too
strict (both the surefirebooter and jacoco jars were on the cp, while the
code was only expecting surefirebooter).

Fix this in a more generic way by checking all classloader URLs for
surefirebooter.
2012-11-22 23:45:18 +01:00
Timo Westkämper
d0c21f6ba0 updated version 2012-11-01 21:36:10 +02:00
Timo Westkämper
16cde895b9 Merge pull request #9 from mcuelenaere/fix_invalid_caching
Fix AbstractEvaluatorFactory.toId() not taking into account constants' types
2012-10-23 14:06:58 -07:00
Maurus Cuelenaere
351b70f7d2 Fix AbstractEvaluatorFactory.toId() not taking into account constants' types
AbstractEvaluatorFactory ignored the types of constants when generating a classname.
As these generated classes get cached, this could result in stack traces like these:

java.lang.IllegalArgumentException: Can not set com.mysema.codegen.ComplexEvaluationTest$SuperCat field Q_0606084786_65821278_65821278.a1 to com.mysema.codegen.support.Cat
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
	at java.lang.reflect.Field.set(Field.java:680)
	at com.mysema.codegen.AbstractEvaluatorFactory.createEvaluator(AbstractEvaluatorFactory.java:86)
2012-10-22 20:06:43 +02:00
Timo Westkämper
489e6e9b7e updated version 2012-10-22 08:35:51 +03:00
Timo Westkämper
11e971cc96 Merge pull request #8 from mcuelenaere/fix_cglib_generated_classes
Normalize dynamically created classes by CGLIB to their canonical form
2012-10-21 22:33:29 -07:00
Maurus Cuelenaere
1c406677e1 Normalize dynamically created classes by CGLIB to their canonical form
This fixes following issue (occuring in QueryDSL):

Q_2045977532_1275614662_1275614662.java:3: error: cannot find symbol
    public example.ExampleClass$$EnhancerByMockitoWithCGLIB$$45c738ca a1;
                  ^
  symbol:   class ExampleClass$$EnhancerByMockitoWithCGLIB$$45c738ca
  location: package example

As this class is dynamically generated, it can't be found at compile-time.
Because it basically is a proxy for the underlying object, use its super class
as normalized form, which solves the compile error.
2012-10-21 21:58:56 +02:00
Timo Westkämper
430135aa6f fixed raw name handling for inner classes in Scala 2012-09-14 10:28:21 +03:00
Timo Westkämper
725b1ecd6f changed parent, artifactId and added scm data 2012-09-05 18:09:03 +03:00
Timo Westkämper
f1710fa060 improved super handling 2012-09-04 12:40:14 +03:00
Timo Westkämper
6bdaa71de4 added Eclipse JDT based compilation 2012-07-30 23:38:06 +03:00
Timo Westkämper
92cbdaf867 fixed logging 2012-06-24 20:50:28 +03:00
Timo Westkämper
2630c8a42d improved handling of manifest only classpaths 2012-06-16 17:56:01 +03:00