Commit Graph

153 Commits

Author SHA1 Message Date
Timo Westkämper
c0edf1e44e Merge pull request #25 from querydsl/i24
Improve surefire handling
2015-03-29 23:25:22 +03:00
Timo Westkämper
f0ad34f09f Add test for surefire handling 2015-03-29 22:24:35 +03:00
Ruben Dijkstra
8fb2afbc36 Normalize non visible classes 2015-03-26 21:48:25 +01:00
Timo Westkämper
5e7e3d39b2 Improve equals contract 2014-11-05 20:24:07 +02:00
John Tims
533be55d9a Synchronize class generation to prevent corruption 2014-09-13 14:57:09 -04:00
Timo Westkämper
88e3f436a0 Use parent classloaders as well 2014-08-14 21:46:55 +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
30d75408aa Add support for Java 8 Date Time API #16 2014-04-02 11:51:26 +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
jtsay362
7493e1af30 Fix Scala constructor to output "def this(...\)" instead of "public <CLASSNAME>(...)" 2013-10-20 00:14:21 -07: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
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
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
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
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
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
30b1dd109c #1 removed findbugs dependency 2012-02-05 22:04:28 +02: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
Timo Westkämper
e9abca9778 updated version to 0.4.5 2011-11-22 23:58:21 +02:00
Timo Westkämper
2e7a85768e updated dependencies, updated to version 0.4.4 2011-11-07 19:48:10 +02:00
Timo Westkämper
0cf7d1fd5f updated version to 0.4.1 2011-08-04 11:16:55 +00:00
Timo Westkämper
0b6b07c79e fixed serialization issues 2011-07-25 06:04:47 +00:00
Timo Westkämper
0d6440cc0e fixed extends type serialization
updated version to 0.4.0
2011-07-01 13:14:47 +00:00
Timo Westkämper
19cf1b95b5 added escaping of Scala reserved words 2011-05-10 08:20:28 +00:00
Timo Westkämper
29ef45f739 improved Scala serialization 2011-05-05 11:13:28 +00:00
Timo Westkämper
862c0d003b improved TypeExtends serialization 2011-04-12 06:24:34 +00:00
Timo Westkämper
6df167a527 2011-04-10 11:40:42 +00:00
Timo Westkämper
deb389cd6a additional name handling fixes 2011-03-31 07:22:47 +00:00
Timo Westkämper
d2cc6fc4a1 fixed packageless class handling
updated version to 0.3.4
2011-03-31 07:18:58 +00:00