JinyongPark / javaparser

Automatically exported from code.google.com/p/javaparser
0 stars 0 forks source link

IndexOutOfBoundsException when parsing nested comments #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Parse the attached simple Class.

This results in a 
java.lang.IndexOutOfBoundsException.IndexOutOfBoundsException(String) at 
CommentsParser.parse(InputStream, String) line: 82

// delete last character
String content = 
currentContent.deleteCharAt(currentContent.toString().length()-1).toString();

--> currentContent is empty, deleteCharAt() fails.

What version of the product are you using? On what operating system?
1.0.11
windows

Original issue reported on code.google.com by rotesb...@googlemail.com on 27 Nov 2014 at 12:03

Attachments:

GoogleCodeExporter commented 8 years ago
Hi! Maybe it is a bit late to answer you. However JavaParser 2.0.0 seems to 
have no problem parsing your file. You can get it there:

https://github.com/javaparser/javaparser

Original comment by ptit...@gmail.com on 8 Mar 2015 at 11:24

GoogleCodeExporter commented 8 years ago
thank you!

Original comment by rotesb...@googlemail.com on 8 Mar 2015 at 12:05