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 236410 - IllegalArgumentException: <T>(java.lang.Class<T>,com.imavis.util.CrudOperations<T>)com.teko.omc.server.CrudServlet<T>
Summary: IllegalArgumentException: <T>(java.lang.Class<T>,com.imavis.util.CrudOperatio...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: NO74
Depends on:
Blocks:
 
Reported: 2013-09-26 09:52 UTC by aldobrucale
Modified: 2013-09-30 12:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204168


Attachments
stacktrace (2.97 KB, text/plain)
2013-09-26 09:52 UTC, aldobrucale
Details
stacktrace (2.88 KB, text/plain)
2013-09-27 13:30 UTC, theshadow27
Details
stacktrace (2.84 KB, text/plain)
2013-09-27 13:33 UTC, theshadow27
Details
testcase: Issue236410.java (575 bytes, text/plain)
2013-09-27 13:35 UTC, theshadow27
Details
stacktrace (2.84 KB, text/plain)
2013-09-27 13:48 UTC, theshadow27
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2013-09-26 09:52:00 UTC
Build: NetBeans IDE Dev (Build 201309260002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
aldobrucale: selected an anonymous inner class in the editor




Stacktrace: 
java.lang.IllegalArgumentException: <T>(java.lang.Class<T>,com.imavis.util.CrudOperations<T>)com.teko.omc.server.CrudServlet<T>
   at com.sun.tools.javac.model.JavacTypes.validateTypeNotIn(JavacTypes.java:299)
   at com.sun.tools.javac.model.JavacTypes.isSubtype(JavacTypes.java:100)
   at org.netbeans.modules.java.hints.introduce.InstanceRefFinder.findOwnerType(InstanceRefFinder.java:201)
   at org.netbeans.modules.java.hints.introduce.InstanceRefFinder.addInstanceForMemberOf(InstanceRefFinder.java:190)
   at org.netbeans.modules.java.hints.introduce.InstanceRefFinder.visitIdentifier(InstanceRefFinder.java:358)
   at org.netbeans.modules.java.hints.introduce.IntroduceConstantFix$1.visitIdentifier(IntroduceConstantFix.java:143)
Comment 1 aldobrucale 2013-09-26 09:52:01 UTC
Created attachment 140497 [details]
stacktrace
Comment 2 theshadow27 2013-09-27 13:30:44 UTC
Created attachment 140555 [details]
stacktrace

Deleted an annonomous class, then did an undo via ctrl-z
Comment 3 theshadow27 2013-09-27 13:33:44 UTC
Created attachment 140556 [details]
stacktrace

Reproduced via test case
Comment 4 theshadow27 2013-09-27 13:35:11 UTC
Created attachment 140557 [details]
testcase: Issue236410.java

Added test case to reproduce consistently on dev 2013 09 26 0002. Just highlight the code between the comments
Comment 5 theshadow27 2013-09-27 13:46:48 UTC
Changing to P1 - this is a major usability issue in the dev builds and VERY recent regression (ok in dev 20130924, broken in 20130926)
Comment 6 theshadow27 2013-09-27 13:48:45 UTC
Created attachment 140559 [details]
stacktrace

Duplicated in dev 20130927
Comment 7 Dusan Balek 2013-09-27 15:18:06 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/96928292c165
Comment 8 Quality Engineering 2013-09-29 01:34:04 UTC
Integrated into 'main-silver', will be available in build *201309290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/96928292c165
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #236410 - IllegalArgumentException - fixed.
Comment 9 theshadow27 2013-09-30 12:56:22 UTC
Verified fixed in dev130930