Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug 923: Remove dependency of CStruct annotation processor _generation_ and ↵ | Sven Gothel | 2014-05-11 | 1 | -6/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generated_class_user due to Java8 issues. Java8's annotation processor as embedded within javac does not allow referencing not-yet existing generated classes in a class source code which will produce these generated classes via the annotation process. Example: +++ import com.jogamp.gluegen.structgen.CStruct; public class Lala { @CStruct(name="RenderingConfig", header="TestStruct01.h") public RenderingConfig config; } +++ Above example illustrates that the type 'RenderingConfig' does not exist at time of processing the annotation. The type will be created via the annotation process itself. Even though we pass '-proc:only', i.e. skip java compilation, Java8's annotation processing via javac fails in such case. We see this as a bug within javac's annotation processing itself! +++ This workaround splits the annotation process and using the class as generated by the former. To allow this to work, CStruct receives a new field 'jname' allowing to enforce the java-name of the structure using a dummy field type like boolean. @CStruct(name="RenderingConfig", jname="RenderingConfig", header="TestStruct01.h") public boolean dummy; Further more CStruct can be annotated on the package, i.e. 'package-info.java', avoiding the dependency problem altogether. To support multiple header files and types, 'CStructs' has been introduced using an array of 'CStruct'. @CStructs({@CStruct(name="RenderingConfig", header="TestStruct01.h"), @CStruct(name="Pixel", header="TestStruct02.h")}) package com.jogamp.gluegen.test.junit.structgen; Tests: - Build w/ Java7 and Java8 - Validated 'major version 50' (Java 6) class files (OK) | ||||
* | Disabled Struct* Tests (not working on Windows .. platform; Moved ↵ | Sven Gothel | 2010-11-25 | 9 | -620/+0 |
| | | | | BuffersTest and PCPP to the proper src/junit folder. All junit tests are now handled by build-junit.xml | ||||
* | PCPP: Let '#error token' throw an exception with the message; Note: #warning ↵ | Sven Gothel | 2010-11-08 | 2 | -2/+6 |
| | | | | needs to be quoted when having seperators | ||||
* | Gluegen/PCPP: Refined PCPP if-elif-else-endif ; Add 'dumpCPP' option to ↵ | Sven Gothel | 2010-11-07 | 1 | -1/+1 |
| | | | | direct PCPP to dump the output to stderr as well | ||||
* | Fix PCPP encapsualted if/if blocks | Sven Gothel | 2010-11-07 | 2 | -1/+86 |
| | |||||
* | PCPP Test: Add ifndef tests | Sven Gothel | 2010-11-07 | 2 | -1/+24 |
| | |||||
* | Fix test | Sven Gothel | 2010-11-07 | 1 | -2/+3 |
| | |||||
* | PCPP: Fix ifdef/ifndef, if, elif and endif correct ; Enhanced PCPP tests | Sven Gothel | 2010-11-07 | 2 | -6/+60 |
| | |||||
* | com.sun -> com.jogamp | Sven Gothel | 2010-11-07 | 14 | -0/+929 |
| | |||||
* | LICENSE.txt changes: | Sven Gothel | 2010-09-14 | 1 | -0/+28 |
| | | | | | | | | | | | | | - Added JogAmp Community and common denominator: New BSD 3-clause license - Added note to make/lib binary file (source and license) Added source and license text for external binaries used in build process (make/lib folder). Changed 'Sven Gothel' and 'Michael Bien' New BSD 3-clause license to 'JogAmp Community' Simplified BSD 2-clause license. | ||||
* | added slice utility methods to Buffers + rudimentary test. | Michael Bien | 2010-07-04 | 1 | -0/+29 |
| | |||||
* | Move HashMapTest to junit.run; Unify classes to only 'Test' in their name if ↵ | Sven Gothel | 2010-05-10 | 2 | -334/+0 |
| | | | | they are a junit test. | ||||
* | switched to nanoTime() and moved asserts to end of the benchmark. | Michael Bien | 2010-04-27 | 2 | -37/+35 |
| | |||||
* | IntIntHashMap (and friends) is now Iterable. Added iterator testcase. | Michael Bien | 2010-04-21 | 2 | -4/+61 |
| | |||||
* | added Simon Goller to @author list in LongIntHashMap und LongIntHashMapTest. | Michael Bien | 2010-04-12 | 1 | -0/+1 |
| | |||||
* | IntIntHashMap changed to LongIntHashMap. | Simon Goller | 2010-04-12 | 1 | -0/+139 |
| | |||||
* | annotated certain token in IntIntHashMap for text substitution. | Michael Bien | 2010-04-08 | 1 | -3/+3 |
| | | | | build generates now via text substitution IntLong- and IntObjectHashmap in the pre-build phase. | ||||
* | initial import of IntIntHashmap + JUnitTest including a benchmark. | Michael Bien | 2010-04-08 | 1 | -0/+139 |