StackOverflowError when creating infinite recursion
cerus opened this issue · 8 comments
cerus commented
How to reproduce:
- Create infinite recursion with gates
- Hook an output into it
- See console
cerus commented
After thinking about this issue for a while I might have come up with a solution:
- Add the method
Set<Node> getLastNodes
to theConnectorHolder
interface - Implement the method in a way that it returns the nodes at the end of the connections
- When connecting a node (A) to another node (B) check if the last nodes of A contain B; If so, abort connecting
This is just an idea. I'll try to fix this when I get home from work as long as no one else has claimed this issue. It's still up for grabs!
cerus commented
Turns out my idea didn't really work
kaggrwal commented
I would like to see it, can you assign it to me and also, please provide the steps to run the program.
cerus commented
Sure, I'll assign this issue to you. Every modern IDE should be able to run the main class directly but these are the manual steps:
- Clone this repository
git clone https://github.com/RealCerus/logic-builder.git
- Change directory
cd logic-builder
- Build the project with Maven
mvn package
- Run the jar file
java -jar target/logic-builder-1.0.0.jar
kaggrwal commented
@RealCerus Hi, I didn't get the time, i'll try it soon and let you know about the progress.
kaggrwal commented
@RealCerus Can we discuss it over IRC/chat ?
cerus commented
You can add me on Discord Cerus#5149