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 241406 - IllegalArgumentException: run()@<anonymous java.lang.Object>
Summary: IllegalArgumentException: run()@<anonymous java.lang.Object>
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 20:28 UTC by mziernik
Modified: 2014-08-13 14:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207286


Attachments
stacktrace (1.15 KB, text/plain)
2014-02-04 20:28 UTC, mziernik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mziernik 2014-02-04 20:28:31 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
mziernik: Rename class




Stacktrace: 
java.lang.IllegalArgumentException: run()@<anonymous java.lang.Object>
   at com.sun.tools.javac.model.JavacTypes.asMemberOf(JavacTypes.java:282)
   at org.netbeans.modules.java.hints.errors.UncaughtException.run(UncaughtException.java:287)
   at org.netbeans.modules.java.hints.infrastructure.CreatorBasedLazyFixList.compute(CreatorBasedLazyFixList.java:147)
   at org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:112)
   at org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:58)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
Comment 1 mziernik 2014-02-04 20:28:33 UTC
Created attachment 144800 [details]
stacktrace
Comment 2 Svata Dedic 2014-08-13 14:37:12 UTC
Sorry I could not reproduce the exception. Possibly the code was somehow half-written or broken in some way that triggered some unusual code path. From the log the "offending" code should 
1/ contain an anonymous subclass of Object, and
2/ define a run() method so that
3/ "something" gets overriden by the run() method

But 2+3 are nonsense IMHO - at least under normal circumstances :)


If you still can reproduce the defect, please attach fragment of the anonymous class' code.