Commit Graph

209 Commits

Author SHA1 Message Date
Timo Westkämper
a81404fc85 Update mysema-source version 2013-10-20 21:15:58 +03: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
Timo Westkämper
1b777cdaa7 migrated codegen to use Guava 2012-04-18 22:59:21 +03:00
Timo Westkämper
6d49f9b3b6 removed commented code 2012-03-14 20:57:06 +02:00
Timo Westkämper
19e37e0494 model simplifications 2012-03-13 21:15:48 +02:00
Timo Westkämper
064b3eb07d added getJavaClass 2012-03-11 11:31:36 +02:00
Timo Westkämper
eb6fd7ecac version 0.4.8 2012-02-05 22:13:28 +02:00
Timo Westkämper
497de0a10d #2 fixed URI creation 2012-02-05 22:09:21 +02:00
Timo Westkämper
9407fefb51 updated 2012-02-05 22:06:28 +02:00
Timo Westkämper
30b1dd109c #1 removed findbugs dependency 2012-02-05 22:04:28 +02:00
Timo Westkämper
3247dc84d7 Merge pull request #4 from ractive/master
Import javax.tools with version 0
2012-02-05 11:56:11 -08:00
Timo Westkämper
66e6a9c282 fixed StringUtils usage 2012-01-26 19:22:29 +02:00
Timo Westkämper
07d4f99e3f fixed scala handling of primitive types 2012-01-26 19:18:16 +02:00
Timo Westkämper
1b82f4d570 added further tests 2012-01-26 00:11:26 +02:00
Timo Westkämper
b2a4dfb0ed added Scala test 2012-01-26 00:09:11 +02:00
Timo Westkämper
6633ea706a improved Scala serialization 2011-12-16 14:12:39 +02:00
Jean-Pierre Bergamin
3f19fd618f Import the javax.tools package with version "0" 2011-11-25 12:34:10 +01:00
Timo Westkämper
e9abca9778 updated version to 0.4.5 2011-11-22 23:58:21 +02:00