https://defect.opensolaris.org/bz/show_bug.cgi?id=18586
Summary: ArrayIndexOutOfBoundsException when indexing SQL file
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: minor
Priority: P3
Component: analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Indexing an SQL file with the following contents:
---
create table abcdef(
x int,
y int);
insert into abcdef values (1,2), (3,4);
---
will result in this exception:
13:54:07 WARNING: Failed to add file /devel/opengrokbug/src/misc/test.sql
java.lang.ArrayIndexOutOfBoundsException: 2
at
org.opensolaris.opengrok.analysis.JFlexXref.writeSymbolTable(JFlexXref.java:212)
at org.opensolaris.opengrok.analysis.JFlexXref.write(JFlexXref.java:172)
at
org.opensolaris.opengrok.analysis.sql.SQLAnalyzer.writeXref(SQLAnalyzer.java:51)
at
org.opensolaris.opengrok.analysis.FileAnalyzer.writeXref(FileAnalyzer.java:176)
at
org.opensolaris.opengrok.index.IndexDatabase.addFile(IndexDatabase.java:604)
at
org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:813)
at
org.opensolaris.opengrok.index.IndexDatabase.update(IndexDatabase.java:353)
at
org.opensolaris.opengrok.index.IndexDatabase$1.run(IndexDatabase.java:157)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
--
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev