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 224111 - IllegalArgumentException: No class: test.NewNewJFrame in source: C:\Users\jprox\Documents\NetBeansProjects\JavaApplication135\src\test\NewNewJFrame.java
Summary: IllegalArgumentException: No class: test.NewNewJFrame in source: C:\Users\jpr...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 22:41 UTC by Jiri Prox
Modified: 2012-12-22 02:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 192622


Attachments
stacktrace (5.09 KB, text/plain)
2012-12-20 22:41 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-12-20 22:41:47 UTC
Build: NetBeans IDE Dev (Build 201212190001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Windows 7

User Comments:
jiriprox: IAE when using custom java tempalte for creating new file

GUEST: assigning an action to a button




Stacktrace: 
java.lang.IllegalArgumentException: No class: test.NewNewJFrame in source: C:\Users\jprox\Documents\NetBeansProjects\JavaApplication135\src\test\NewNewJFrame.java
   at org.netbeans.modules.java.source.queriesimpl.JavaOperationsImpl.modifyInterfaces(JavaOperationsImpl.java:244)
   at org.netbeans.modules.java.source.queries.api.Updates.modifyInterfaces(Updates.java:80)
   at org.netbeans.modules.form.FormJavaSource$5.apply(FormJavaSource.java:220)
   at org.netbeans.modules.form.FormJavaSource$5.apply(FormJavaSource.java:217)
   at org.netbeans.modules.java.source.queries.spi.QueriesController$Context$SPIFnc.apply(QueriesController.java:146)
   at org.netbeans.modules.java.source.queries.spi.QueriesController$Context.execute(QueriesController.java:116)
Comment 1 Jiri Prox 2012-12-20 22:41:48 UTC
Created attachment 129599 [details]
stacktrace
Comment 2 Tomas Pavek 2012-12-21 16:32:01 UTC
Happening when there is no valid top level class in the java file. Fixed.
http://hg.netbeans.org/jet-main/rev/31812a56e524
Comment 3 Quality Engineering 2012-12-22 02:28:12 UTC
Integrated into 'main-golden', will be available in build *201212220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/31812a56e524
User: Tomas Pavek <tpavek@netbeans.org>
Log: #224111: java source won't work if there is no valid class in the java file, which should only be determined by java source, not deduced from location in classpath