Scott Gray
52b08f4574
Removed all references to the deprecated GenericDelegator method findAll(String)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938947 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:23 +00:00
Scott Gray
865932107b
Removed some references to deprecated method names.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938946 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:45 +00:00
Erwan de Ferrieres
4588877bc2
forgot to remove those file from the SVN at r938061. Thanks Jacopo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938074 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 14:54:17 +00:00
Erwan de Ferrieres
6d82a3d889
Migration to Tomcat 6.0.26. Tests are running well
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938061 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 14:33:43 +00:00
Erwan de Ferrieres
e268db4a97
Adding a new display type "accouting-number", which allows to display negatives in parentheses
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937964 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 08:51:25 +00:00
Adam Heath
e3b9b75242
Don't create a temporary string to hold the digestChars.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935383 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:59 +00:00
Adam Heath
95949ff2b7
Add <test-jar> macro.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Adam Heath
f2bfef6274
Create a main-jar macro.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935380 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:37 +00:00
Adrian Crum
70f5bc5ea7
Fixed a bug in TimeDuration.java. Added test for same.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935372 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:52:01 +00:00
Adrian Crum
52f2ba2b1f
Fixed a bug in ComparableRange.equals method, added test for same.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935371 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:39:22 +00:00
Adrian Crum
eb88470d5f
Minor JavaDoc changes in Range.java. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935369 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:30:10 +00:00
Scott Gray
f8354e3fa4
Get rid of a bunch of Integer instantiations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935163 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:27:15 +00:00
Scott Gray
28ca28af2c
Removed unused imports and added @Override where needed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935139 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:12:33 +00:00
Scott Gray
e1c4500603
Fix the StringToBigDecimal converter to not use an interim double value unless it absolutely has to
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935137 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:09:11 +00:00
Adrian Crum
b6e2455579
An improved Assert class - replaces the one I took out.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935096 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 23:29:07 +00:00
Adrian Crum
0909a29080
One more small performance tweak for TimeDuration.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934543 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:50:04 +00:00
Adrian Crum
b5bd489ca5
Fixed a TimeDuration speed issue that was revealed by Coburtura.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934289 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 05:10:59 +00:00
Adrian Crum
896222b7fe
Revert unintentional file change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934211 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 21:54:29 +00:00
Adrian Crum
fa825dd956
Reverting my last commits. I just found out Apache Commons Validate does the same thing.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934179 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:22:26 +00:00
Adrian Crum
beb4b8bcaa
Small fixup for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934169 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:09:42 +00:00
Adrian Crum
a05a3dfcab
Added an Assert class. It should make argument checking easier.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:03:46 +00:00
Adrian Crum
84626504a0
Updated the ICU4J library.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933324 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 17:06:42 +00:00
Bruno Busco
5d5e489598
A patch from Blas Rodriguez Somoza
...
OFBIZ-3637 - XHTML validation errors (framework excluding widget) round 2
https://issues.apache.org/jira/browse/OFBIZ-3637
XHTML validation errors
* Unclosed tags INPUT, IMG, BR...
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* required attributes not included (alt in img, type in style, type in script etc)
* Uppercase tags or attributes.
* Unencoded entities (ampersands).
Other changes:
selectall.js
line 333. ajaxAutoCompleter must work with unenconded or encoded ampersands.
EntityRefMain.ftl
line 176. <div> must be </div>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932733 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 14:35:07 +00:00
Adam Heath
fcd5a641ad
s/test-case/test-group/, taken from OFBIZ-3661, so that all tests will
...
be run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932233 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 03:19:27 +00:00
Adam Heath
c279273652
Don't specify java.io.Serializable fully, import it instead.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932102 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:30 +00:00
Adam Heath
1922547f81
Fix bad exception logging pattern, now you actually get an exception
...
trace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932101 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:24 +00:00
Adrian Crum
11f0e07d97
Corrected spelling/grammar.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930741 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:44:06 +00:00
Adam Heath
160e608257
Thread-pool baesd dependency resolution framework. This implementation
...
is also non-blocking.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930739 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:14:04 +00:00
Adam Heath
688dbbdbf9
Remove static ExecutionPoolFactory; it was only used internally, and the
...
original implementation that this was based on did more, which required
it to be a separate class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930736 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:08:40 +00:00
Adam Heath
7edfb25c62
Remove synchronized here too; again, since we are adding/removing from a
...
cache, if 2 threads happen to not find anything, then it will just cause
a little bit of duplicated work. It's better to that, then have a block
occur. Class loading causes static constructors to run, which might end
up calling into the thread context class loader, which then might end up
starting other threads, which then could end up calling back into this
code path; instant dead-lock. So, removing a lock stops the dead-lock
possibility.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930735 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:08:34 +00:00
Adam Heath
21ee263389
Remove synchronized blocks when fetching/creating instances into the
...
local caches. It's not important to make certain there is only one
constructed instance.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930734 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:08:27 +00:00
Adam Heath
b50fdaa488
There is really no need to protect hint with a synchronized block.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930733 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 18:52:26 +00:00
Adam Heath
aa93a9511e
Annotation used to document how some other variable or method is
...
protected under some other locking mechanism.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930732 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 18:52:19 +00:00
Adam Heath
426dc6fa7b
Remove javacc from the runtime library path.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930731 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 18:47:22 +00:00
Bilgin Ismet Ibryam
2a29d19bc0
Committed a patch from OFBIZ-3541 "Using Widgets html form templates in FTL files". This change will make autocompleter available also in ftl lookups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930660 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 10:38:19 +00:00
Adam Heath
6094c94ba2
Fix for buildbot failure, due to committing untested rebased code;
...
mea-culpa.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929847 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 05:21:21 +00:00
Adam Heath
a147d7863e
Add a new method, erase(), which just clears out the stored entries,
...
without clearing any counters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929846 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:52:39 +00:00
Adam Heath
1bc6324970
Remove SoftReferences automatically in the background. This is the
...
final step in removing all polling code patterns from UtilCache.
Because of this, all helper methods that were used to clear elements
programmatically are now officially deprecated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929845 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:51:14 +00:00
Adam Heath
b6948771f4
Helper class to poll a ReferenceQueue with a background thread.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929844 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:50:21 +00:00
Adam Heath
e4ce6146c7
Backround removal of items due to ttl expiration.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929843 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:49:37 +00:00
Adam Heath
3e4236b4fc
Switch memoryTable to ConcurrentMap, which means it's no longer a
...
FastMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929842 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:49:00 +00:00
Adam Heath
c50099a5ac
No longer store CacheLine into the disk store, just store the value.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929841 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:48:30 +00:00
Adam Heath
6d5aa9b168
Remove CacheLine.getSizeInBytes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929840 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:47:58 +00:00
Adam Heath
5abf555503
New changeMemSize tests.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929839 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:47:25 +00:00
Adam Heath
ccbc1646ca
Inline CacheLineTable into UtilCache. This removes the CacheLineTable
...
class completely. The getCacheLine() method now throws
UnsupportedOperationException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929838 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:46:53 +00:00
Adam Heath
f530c596ed
Add a feature to request CacheLine metadata as a simple list of maps.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929837 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:46:14 +00:00
Adam Heath
eb7c6dfaeb
Fetching of cache.file.store now also uses getPropertyParam.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929836 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:45:29 +00:00
Adam Heath
8278eb9ecf
Refactored getPropertyParam, so it is responsible for logging exception
...
warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929835 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:44:57 +00:00
Adam Heath
ddce0bdf97
The non-serial methods now call the local serial variants, to help with
...
code coverage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929833 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:44:26 +00:00
Adam Heath
492e748758
Remove helper method, incrementCounter, and just call incrementAndGet on
...
all the atomics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929832 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:43:12 +00:00