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 129717 - IllegalArgumentException at org.netbeans.api.java.source.SourceUtils.getMainClasses
Summary: IllegalArgumentException at org.netbeans.api.java.source.SourceUtils.getMainC...
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ dcaoyuan
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-10 23:37 UTC by misterm
Modified: 2008-08-11 07:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 35239


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2008-03-10 23:37:05 UTC
Can't run a Scala file due to this error.

Build: NetBeans IDE 6.1 Beta (Build 200803050202)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86
User comments: Error trying to run a Scala file
STACKTRACE: (first 10 lines)
java.lang.IllegalArgumentException
        at org.netbeans.api.java.source.SourceUtils.getMainClasses(SourceUtils.java:805)
        at org.netbeans.modules.scala.project.J2SEProjectUtil.getMainMethods(J2SEProjectUtil.java:111)
        at org.netbeans.modules.scala.project.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:494)
        at org.netbeans.modules.scala.project.J2SEActionProvider$3.run(J2SEActionProvider.java:318)
        at org.netbeans.api.java.source.ui.ScanDialog.runWhenScanFinished(ScanDialog.java:150)
        at org.netbeans.modules.scala.project.J2SEActionProvider.invokeAction(J2SEActionProvider.java:356)
        at org.netbeans.modules.project.ui.actions.FileCommandAction.actionPerformed(FileCommandAction.java:99)
        at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:155)
        at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:971)
        at javax.swing.JComponent.processKeyBindings(JComponent.java:2895)
Comment 1 Jan Lahoda 2008-03-10 23:49:06 UTC
Seems that a FileObject which is not recognized by the JavaSource (i.e. is not Java) is being passed into
SourceUtils.getMainClasses.
Comment 2 _ dcaoyuan 2008-07-23 21:07:58 UTC
Can't reproduced in recent builds