KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > util > Bug


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/util/Bug.java#5 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2006-2006 Julian Hyde
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.util;
11
12 import mondrian.rolap.sql.SqlQuery;
13 import mondrian.olap.MondrianProperties;
14 /**
15  * Holder for constants which indicate whether particular issues have been
16  * fixed. Reference one of those constants in your code, and it is clear which
17  * code can be enabled when the bug is fixed. Generally a constant is removed
18  * when its bug is fixed.
19  *
20  * @author jhyde
21  * @version $Id: //open/mondrian/src/main/mondrian/util/Bug.java#5 $
22  * @since Oct 11, 2006
23  */

24 public class Bug {
25     /**
26      * Whether
27      * <a HREF="http://sourceforge.net/tracker/index.php?func=detail&aid=1574942&group_id=35302&atid=414613">bug 1574942, "NON EMPTY when hierarchy's default member is not 'all'"</a>
28      * is fixed.
29      */

30     public static final boolean Bug1574942Fixed = false;
31
32     // Properties relating to checkin 7641.
33
// This is part of the junit test Checkin_7641 that
34
// shows that there is a difference when the default
35
// member is not the one used in an axis.
36
// When Checkin 7641 is resolved, then this System property access and
37
// boolean should go away.
38
// (What's the bug associated with this??)
39

40     public static boolean Checkin7641UseOptimizer = false;
41
42     /**
43      * Whether
44      * <a HREF="http://sourceforge.net/tracker/index.php?func=detail&aid=1530543&group_id=35302&atid=414613">bug 1530543, "IS EMPTY and IS NULL"</a>
45      * is fixed.
46      */

47     public static final boolean Bug1530543Fixed = false;
48
49     /**
50      * Returns whether to avoid a test because the memory monitor may cause it
51      * to fail.
52      *
53      * <p>Some tests fail if memory monitor is switched on, and Access and
54      * Derby tend to use a lot of memory because they are embedded.
55      */

56     public static boolean avoidMemoryOverflow(SqlQuery.Dialect dialect) {
57         return dialect.isAccess() &&
58             MondrianProperties.instance().MemoryMonitor.get();
59     }
60 }
61
62 // End Bug.java
63
Popular Tags