Buggy code:
final RolapHierarchy closureFor ; RolapHierarchy ( RolapDimension dimension , String subName , String caption , boolean visible , String description , boolean hasAll , RolapHierarchy closureFor , Map < String , Annotation > annotationMap ) { } RolapHierarchy ( RolapDimension dimension , MondrianDef . Hierarchy xmlHierarchy , MondrianDef . CubeDimension xmlCubeDimension ) { } public static Map < String , Annotation > createAnnotationMap ( MondrianDef . Annotations annotations ) { } protected Logger getLogger ( ) { } public boolean equals ( Object o ) { } protected int computeHashCode ( ) { } void init ( MondrianDef . CubeDimension xmlDimension ) { } void setMemberReader ( MemberReader memberReader ) { } MemberReader getMemberReader ( ) { } public Map < String , Annotation > getAnnotationMap ( ) { } RolapLevel newMeasuresLevel ( ) { } Relation getUniqueTable ( ) { } boolean tableExists ( String tableName ) { } Relation getTable ( String tableName ) { } private static Relation getTable ( String tableName , MondrianDef . RelationOrJoin relationOrJoin ) { } public RolapSchema getRolapSchema ( ) { } public RelationOrJoin getRelation ( ) { } public Hierarchy getXmlHierarchy ( ) { } public Member getDefaultMember ( ) { } public Member getNullMember ( ) { } public RolapMember getAllMember ( ) { } public Member createMember ( Member parent , Level level , String name , Formula formula ) { } String getAlias ( ) { } public String getSharedHierarchyName ( ) { } void addToFromInverse ( SqlQuery query , MondrianDef . Expression expression ) { } void addToFrom ( SqlQuery query , MondrianDef . Expression expression ) { } void addToFrom ( SqlQuery query , RolapStar . Table table ) { } private static RelationOrJoin relationSubsetInverse ( MondrianDef . RelationOrJoin relation , String alias ) { } private static RelationOrJoin relationSubset ( MondrianDef . RelationOrJoin relation , String alias ) { } private static RelationOrJoin lookupRelationSubset ( MondrianDef . RelationOrJoin relation , RolapStar . Table targetTable ) { } MemberReader createMemberReader ( Role role ) { } List < Member > getLowestMembersForAccess ( Evaluator evaluator , HierarchyAccess hAccess , Map < Member , Access > membersWithAccess ) { } public boolean isRagged ( ) { } synchronized Exp getAggregateChildrenExpression ( ) { } RolapDimension createClosedPeerDimension ( RolapLevel src , MondrianDef . Closure clos , MondrianDef . CubeDimension xmlDimension ) { RolapDimension peerDimension = new RolapDimension ( dimension . getSchema ( ) , ( ( dimension . getName ( ) ) + "$Closure" ) , null , true , ( "Closure<seq2seq4repair_space>dimension<seq2seq4repair_space>for<seq2seq4repair_space>parent-child<seq2seq4repair_space>hierarchy<seq2seq4repair_space>" + ( getName ( ) ) ) , DimensionType . StandardDimension , dimension . isHighCardinality ( ) , Collections . < String , Annotation > emptyMap ( ) ) ; RolapHierarchy peerHier = peerDimension . newHierarchy ( null , true , this ) ; peerHier . allMemberName = getAllMemberName ( ) ; peerHier . allMember = ( ( RolapMemberBase ) ( getAllMember ( ) ) ) ; peerHier . allLevelName = getAllLevelName ( ) ; peerHier . sharedHierarchyName = getSharedHierarchyName ( ) ; MondrianDef . Join join = new MondrianDef . Join ( ) ; peerHier . relation = join ; join . left = clos . table ; join . leftKey = clos . parentColumn ; join . right = relation ; join . rightKey = clos . childColumn ; int index = peerHier . levels . length ; int flags = ( src . getFlags ( ) ) & ( ~ ( RolapLevel . FLAG_UNIQUE ) ) ; MondrianDef . Expression keyExp = new MondrianDef . Column ( clos . table . name , clos . parentColumn ) ; <START_BUG> RolapLevel level = new RolapLevel ( peerHier , "Closure" , caption , true , description , ( index ++ ) , keyExp , null , null , null , null , null , null , RolapProperty . emptyArray , ( flags | ( RolapLevel . FLAG_UNIQUE ) ) , src . getDatatype ( ) , null , src . getHideMemberCondition ( ) , src . getLevelType ( ) , "" , Collections . < String , Annotation > emptyMap ( ) ) ; <END_BUG> peerHier . levels = Util . append ( peerHier . levels , level ) ; flags = ( src . getFlags ( ) ) | ( RolapLevel . FLAG_UNIQUE ) ; keyExp = new MondrianDef . Column ( clos . table . name , clos . childColumn ) ; RolapLevel sublevel = new RolapLevel ( peerHier , "Item" , null , true , null , ( index ++ ) , keyExp , null , null , null , null , null , null , RolapProperty . emptyArray , flags , src . getDatatype ( ) , src . getInternalType ( ) , src . getHideMemberCondition ( ) , src . getLevelType ( ) , "" , false , Collections . < String , Annotation > emptyMap ( ) ) ; peerHier . levels = Util . append ( peerHier . levels , sublevel ) ; return peerDimension ; } public void setDefaultMember ( Member defaultMember ) { } public String getUniqueKeyLevelName ( ) { } public int getOrdinalInCube ( ) { } static class RolapNullMember extends RolapMemberBase { RolapNullMember ( final RolapLevel level ) { } } protected static class RolapCalculatedMeasure extends RolapCalculatedMember implements RolapMeasure { private ValueFormatter cellFormatter ; public RolapCalculatedMeasure ( RolapMember parent , RolapLevel level , String name , Formula formula ) { } public synchronized void setProperty ( String name , Object value ) { } public ValueFormatter getFormatter ( ) { } } public static class LimitedRollupMember extends RolapCubeMember { public final RolapMember member ; private final Exp exp ; final HierarchyAccess hierarchyAccess ; LimitedRollupMember ( RolapCubeMember member , Exp exp , HierarchyAccess hierarchyAccess ) { } public boolean equals ( Object o ) { } public int hashCode ( ) { } public Exp getExpression ( ) { } protected boolean computeCalculated ( final MemberType memberType ) { }

Fix:
RolapLevel level = new RolapLevel ( peerHier , "Closure" , caption , true , description , ( index ++ ) , keyExp , null , null , null , null , null , null , RolapProperty . emptyArray , ( flags | ( RolapLevel . FLAG_UNIQUE ) ) , src . getDatatype ( ) , null , src . getHideMemberCondition ( ) , src . getLevelType ( ) , "" , false , Collections . < String , Annotation > emptyMap ( ) ) ;