This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185425 - IllegalArgumentException at org.netbeans.modules.scala.core.ScalaSourceUtil$.getMainClasses
Summary: IllegalArgumentException at org.netbeans.modules.scala.core.ScalaSourceUtil$....
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: _ dcaoyuan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 10:49 UTC by sanjay_dasgupta
Modified: 2014-06-15 04:04 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168610


Attachments
stacktrace (1.11 KB, text/plain)
2010-05-04 10:50 UTC, sanjay_dasgupta
Details
stacktrace (1.11 KB, text/plain)
2010-09-08 22:26 UTC, alpha123
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sanjay_dasgupta 2010-05-04 10:49:58 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
GUEST: Clicking the green "run" button in the toolbar

sanjay_dasgupta: I am using the Scala plug-in, but it is failing to import any classes from the 3rd-party regular expression library from http://www.brics.dk/~amoeller/automaton/automaton.jar

The import statement is "import dk.brics.automaton._"  This line compiles correctly outside the IDE, but the IDE always underlines it in red with the error "value brics in not a member of package dk"




Stacktrace: 
java.lang.IllegalArgumentException
   at org.netbeans.modules.scala.core.ScalaSourceUtil$.getMainClasses(ScalaSourceUtil.java:669)
   at org.netbeans.modules.scala.core.ScalaSourceUtil$.getMainClassesAsJavaCollection(ScalaSourceUtil.java:715)
   at org.netbeans.modules.scala.core.ScalaSourceUtil$$anonfun$getMainClassesAsJavaCollection$2.apply(ScalaSourceUtil.java:728)
   at org.netbeans.modules.scala.core.ScalaSourceUtil$$anonfun$getMainClassesAsJavaCollection$2.apply(ScalaSourceUtil.java:727)
   at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.java:35)
   at scala.collection.mutable.ArrayOps.foreach(ArrayOps.java:35)
Comment 1 sanjay_dasgupta 2010-05-04 10:50:02 UTC
Created attachment 98424 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-07-16 14:33:33 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=168610
Comment 3 alpha123 2010-09-08 22:26:20 UTC
Created attachment 101953 [details]
stacktrace

Attempting to run a Scala program.