Adam Heath
c5ea13344b
Rename SourceMonitor to SourceMonitored, and remove all the settings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929384 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 05:52:58 +00:00
Jacques Le Roux
40924b4fc9
Fix a bug reported by Qin Sheng on user ML. This wrong C/P was introduced by r585750
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928470 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 18:32:32 +00:00
Jacopo Cappellato
73bfcba796
I have forgotten to commit this in my previous commit (927783): now the ComparableRange class implements the Comparable interface.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927867 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 14:27:49 +00:00
Adrian Crum
19f2a0a463
Small fixups in GroovyUtil.java - no functional change. Removed unused import, fixed Generics warnings, reordered methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927503 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 17:10:57 +00:00
Adrian Crum
32e6c4317b
Simplified the getBinding method in GroovyUtil.java, plus added a JavaDoc to describe what it does.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927172 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 20:22:38 +00:00
Adam Heath
bff0cbe2c5
ExecutionPool.pulseAll now requires a class filter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926924 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:22:54 +00:00
Adam Heath
fefef6c4d8
Check for validity after converting, instead of before.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926923 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:22:12 +00:00
Adam Heath
8f84e88df1
Junit assertThat syntactic sugar.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926922 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:21:38 +00:00
Adam Heath
17631d27d3
Add constructor variant that allows for setting the loadTimeNanos.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926920 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:20:57 +00:00
Adam Heath
aa1481c254
Save the loadTimeNanos value.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926919 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:20:29 +00:00
Adam Heath
9879218402
Change delayMillis to delayNanos.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926918 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:20:01 +00:00
Adam Heath
a637cd1a90
Improve polish notation, by suffixing Nanos, and removing 'In' keyword.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926917 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:19:30 +00:00
Adam Heath
3869beaa98
Implement Serializable, so this can be saved to disk and other
...
locations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926916 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:19:03 +00:00
Adam Heath
9a89157c71
Implement hashCode, which is required when equals is implemented.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926915 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:18:35 +00:00
Adam Heath
dbc48e2b1e
Remove useless StringBuilder instantiation.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926914 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:18:07 +00:00
Adam Heath
3623c1c8df
Add new annotation, SourceMonitor, which provides a source-level
...
documention of which people, on which mailing list, will be giving extra
attention to changes to the annotated classes, constructors, and
methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926912 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 03:16:50 +00:00
Adam Heath
d06217cffb
Fix very slow startup times, by turning off excessive debugging. This
...
gave a 40% speedup in startup time on a production server.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926874 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 00:08:40 +00:00
Adrian Crum
c81c12d286
Added the ability for services to invoke Groovy script methods. Groovy service methods do not have parameters; parameters are passed in the context - just like simple method services.
...
Removed long comment (unused cache testing code) in GroovyUtil.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926780 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 21:05:56 +00:00
Scott Gray
6109808c8a
Tabs to spaces
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adrian Crum
ece5529bd9
Fixed catch clause in ObjectType.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923592 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 06:46:17 +00:00
Adrian Crum
5aee9e3b82
Deleted orphaned JavaDoc comment.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923591 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 06:45:23 +00:00
Adam Heath
a98e688899
Move ObjectWrapper to the lang package.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923358 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:33:24 +00:00
Adam Heath
ac7090a129
This doesn't need to import ObjectWrapper.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923356 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:32:06 +00:00
Adam Heath
2f7ee6b1d3
Move Factory to lang package.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923354 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:31:34 +00:00
Adam Heath
6d6205e192
Test the ability of loadContainedConverters to skip thrown exceptions.
...
This leaves 2 lines unconvered, and 1 branch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923103 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:27:33 +00:00
Adam Heath
1e042ce64d
In PassThruConverterCreator, only use ObjectType.instanceOf, so that
...
there are no longer any unconvered branches on that line.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923102 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:26:58 +00:00
Adam Heath
84e8e45b16
Turn off verbosity of Converters, and no longer explicitly call
...
Debug.verboseOn; it's not a fast path that needs to have it protected,
as this code is only called once at startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923101 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:26:10 +00:00
Adam Heath
572679cabf
Remove unused null check against targetClass in registerConverter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923100 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:25:25 +00:00
Adam Heath
857d0b81a0
Test that public objects in a class are skipped over, if they aren't a
...
ConverterLoader.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923099 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:24:51 +00:00
Adam Heath
8a614758af
Converters is a static helper class, so test for that.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923097 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:24:14 +00:00
Adam Heath
9aa9857b95
Remove not-needed NullConverter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923096 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:23:35 +00:00
Adam Heath
c7af9fddd6
Moved call to future.run to inside the main loop; as a side effect, this
...
causes us to finally reach full branch coverage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923095 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:22:47 +00:00
Adam Heath
f50dfd69d2
Reworked setObject to delay the actual setting until the next getObject
...
call. Removes one hard to test branch. Just a single branch left to
test.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923094 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:21:59 +00:00
Adam Heath
5f97749e45
100% line coverage, 2 branches left.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923093 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:21:10 +00:00
Adam Heath
ab880ae454
Remove unneeded cast.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923092 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:20:34 +00:00
Adam Heath
176b409413
Full branch coverage now.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923091 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 07:19:57 +00:00
Adam Heath
89c1bec653
Some major tweeking to get better coverage.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923054 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:37:31 +00:00
Adam Heath
c807dcea6f
100% coverage during testing now.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923053 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:37:01 +00:00
Adam Heath
d8553a3cef
Add new helper method to make constructing simpler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923052 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:36:22 +00:00
Adam Heath
6466fae298
More coverage on ObjectType.simpleTypeConvert.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923051 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 04:35:44 +00:00
Adam Heath
4577e3afa4
Helper wrapper to protect against objects that have some kind of timestamp
...
checking.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922758 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:57:12 +00:00
Adam Heath
bef43eedb4
Since getTTL throws ConfigurationException, which is now a
...
RuntimeException, there's no need to declare it in the throws clause.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922757 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:55:52 +00:00
Adam Heath
45d2d66c02
ConfigurationException is now a RuntimeException.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922756 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:55:23 +00:00
Adam Heath
809fdb9e88
Fixed coverage of the test cases.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922755 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 03:54:53 +00:00
Jacques Le Roux
a7a09a0817
As suggested by Adam and Scott move the encodeQuotes static method (actually renamed encodeDoubleQuotes) from UtilHttp to FreeMarkerWorker
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921714 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 07:57:27 +00:00
Jacques Le Roux
ca38a526fa
Following r921421, here is the right and simplest solution (KISS way).
...
Simply encoding the tooltip (why I did not think about that before, really sometimes I wonder how my brain is working, I need to stop working for it to begin to work)
There are no needs to encode char like >, but of course < is needed (in he XML file) since else there is a problem in the XML labels file (always the same issue: around vs inside)
So yes, it's only a matter of encoding at the right place, ie before the "around vs inside" issue arises
Good night ;)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921643 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 00:20:57 +00:00
Adrian Crum
615c3d83d1
Revert rev 902341 - which seemed to cause problems with the Derby database.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921455 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 17:11:18 +00:00
Adam Heath
745fab7188
Make the protected static methods public.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921089 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:58:36 +00:00
Adam Heath
6122265c29
s/ServiceRegistry/ServiceLoader/
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921085 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:52:50 +00:00
Scott Gray
4d14316c52
[CVE-2010-0432] Added an OFBiz specific FreeMarker TemplateExceptionHandler, ensures that any stack trace error messages are properly encoded before being dumped to the browser (or anywhere else).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920370 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:14 +00:00