@@ -0,0 +1,1160 @@
+/* This file is part of SableCC ( http://sablecc.org ).%0A * %0A * See the NOTICE file distributed with this work for copyright information.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage ticket25;%0A%0Aimport org.junit.Test;%0Aimport org.sablecc.sablecc.automaton.graph.State;%0Aimport org.sablecc.sablecc.automaton.graph.Transition;%0A%0Apublic class TransitionBug %7B%0A%0A    @Test%0A    public void bug() %7B%0A%0A        State%3CInteger%3E state = new State%3CInteger%3E(%22state%22);%0A        Transition%3CInteger%3E transition = new Transition%3CInteger%3E(state, state,%0A                null);%0A%0A        // Line that causes the bug.%0A        transition.equals(transition);%0A    %7D%0A%7D%0A

Add regression test. See ticket:25.