mwanji / toml4j

A Java TOML parser
MIT License
322 stars 58 forks source link

Repeating table in table array ends with IllegalStateException #26

Closed stanofujdiar closed 8 years ago

stanofujdiar commented 8 years ago

Hi, I just add table fruit.physical to the second table fruit and run test for that

[[fruit]] name = "apple"

[fruit.physical] color = "red" shape = "round"

[[fruit.variety]] name = "red delicious"

[[fruit.variety]] name = "granny smith"

[[fruit]] name = "banana"

[fruit.physical] color = "yellow" shape = "oblong"

[[fruit.variety]] name = "plantain"

java.lang.RuntimeException: java.lang.IllegalStateException: Duplicate table definition on line 17: [fruit.physical]

mwanji commented 8 years ago

Thanks so much for pointing this out. A fix is on the WIP branch. Could you possibly test to see if it solves your problem? Let me know and I'll release it to Maven Central.

stanofujdiar commented 8 years ago

Thanks it is great and working.

mwanji commented 8 years ago

Great, I'm happy your problem is resolved. I've pushed it to Maven Central, it should be available in the next few hours.