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.
This bug was originally marked as duplicate of bug 235620, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201502200001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-ea-b22 OS: Windows 7 User Comments: gtzabari: Copied class. Exception thrown. Stacktrace: java.lang.AssertionError: isSameType UNKNOWN at com.sun.tools.javac.code.Types$SameTypeVisitor.visitType(Types.java:1121) at com.sun.tools.javac.code.Types$SameTypeVisitor.visitType(Types.java:1093) at com.sun.tools.javac.code.Type.accept(Type.java:189) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4498) at com.sun.tools.javac.code.Types$SameTypeVisitor.visitClassType(Types.java:1141) at com.sun.tools.javac.code.Types$SameTypeVisitor.visitClassType(Types.java:1093)
Created attachment 152127 [details] stacktrace
Is it possible to extract the reproducible test case from your sources? Thanks.
I don't remember which source-code this exception came from. I'll let you know if I run across this error again.
Created attachment 153236 [details] stacktrace Typed a dot after an object
Dusan, SUCCESS!! I finally found a way to reproduce this bug :) Using: Product Version: NetBeans IDE Dev (Build 201505080001) Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\dev\Netbeans\user\dev Cache directory: C:\dev\Netbeans\cache\dev Repro steps: 1. Open the testcase. 2. Select GetPolicyPropertyIdValidator.java 3. Hit CTRL+C to copy the class 4. Enter the name SetPolicyPropertyIdValidator 5. Click OK 6. Wait a few seconds... 4-5 exceptions will get thrown. The last one is "java.lang.AssertionError: isSameType UNKNOWN"
Created attachment 153639 [details] Testcase
Dusan, Have you had a chance to try the attached testcase? Can you reproduce the problem on your end?
(In reply to _ gtzabari from comment #5) > 4. Enter the name SetPolicyPropertyIdValidator What do you mean here?
(In reply to cezariusz from comment #8) > (In reply to _ gtzabari from comment #5) > > 4. Enter the name SetPolicyPropertyIdValidator > > What do you mean here? Sorry, let me know if this helps: 3. Select the class in the Projects tab, hit CTRL+C 4. Select the enclosing package in the Projects tab, hit CTRL+V. When prompted for the new class' name, enter "SetPolicyPropertyIdValidator"
(In reply to _ gtzabari from comment #9) > When prompted for the new class' name, enter "SetPolicyPropertyIdValidator" Error: Class "SetPolicyPropertyIdValidator" already exists in the target package. But I did reproduce when I first deleted the file from your project and then followed your steps.
Created attachment 155939 [details] stacktrace edit java class
Do you still plan on fixing this in version 8.1? If so, please read my comments in http://statistics.netbeans.org/analytics/detail.do?id=215572. If not, please update Target Milestone. Inserting conflict markers into the file doesn't seem to trigger the exception by its own. In my case, this seems to be triggered by external file edits.
Created attachment 161384 [details] stacktrace Editing a maven pom file
FYI, I have a reliable way to reproduce it outside NetBeans: 1. Build contrib/classgraph 2. Get the sources (Oracle internal) to PGX from ssh://$YOUR_ID@ol-scm:/repos/projectq/pgx.git 3. cd into the source folder and run java -jar /path/to/callgraph-jar-with-dependencies.jar -n -o /tmp/methods.edges -v .
Created attachment 162978 [details] stacktrace autocompletion in java
Created attachment 163683 [details] stacktrace Refactor > Rename class.
Created attachment 164276 [details] stacktrace Not sure, probably something to do with adding an if statement before a decleration. Totally nuked autocomple ...
Ok so there are different bugs going on here. The first is at com.sun.tools.javac.code.Types$SameTypeVisitor.visitType(Types.java:1121)' The one from 2017-05-08 is at com.sun.tools.javac.code.Types$SameTypeVisitor.visitType(Types.java:1283) Not sure if you want me to file a different report? I have a dump file that was requested... From looking in the logs, I think the 1283 one resulted from a INFO [org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl]: org.netbeans.modules.java.hints.bugs.InfiniteRecursion.run java.lang.NullPointerException
Created attachment 164279 [details] dump file as requested in the log SEVERE [org.openide.util.Exceptions] An error occurred during parsing of 'C:\Users\Admin\Documents\NetBeansProjects\pericore-dom\src\main\java\com\pericore\xml\dom\PrecomputedQuery.java'. Please report a bug against java/source and attach dump file 'C:\Users\Admin\AppData\Roaming\NetBeans\8.2\var\log\PrecomputedQuery.dump'. Please find this file attached. Thanks
Created attachment 164280 [details] stacktrace Editing the same class...