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.
Summary: | AssertionError: isSameType UNKNOWN | ||
---|---|---|---|
Product: | java | Reporter: | theshadow27 <theshadow27> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jbosboom, jiriprox, theshadow27 |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://netbeans.org/bugzilla/show_bug.cgi?id=236155 https://netbeans.org/bugzilla/show_bug.cgi?id=236152 |
||
Issue Type: | DEFECT | Exception Reporter: | 203651 |
Attachments: |
stacktrace
stacktrace full stacktrace (both exceptions testcase testcase: Issue235620.java stacktrace stacktrace |
Description
theshadow27
2013-09-06 18:37:59 UTC
Created attachment 139774 [details]
stacktrace
SEVERE [org.openide.util.Exceptions] java.lang.NullPointerException Caused: org.netbeans.modules.parsing.spi.ParseException at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:211) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106) [catch] at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:301) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) WARNING [org.netbeans.modules.findbugs.RunFindBugs]: Cannot find sig file for: com.pericore.util.HeapStreamTest$42 INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for kind = CLASS INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=CLASS; sigs=com.pericore.util.HeapStreamTest$42 ] INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for kind = CLASS INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=CLASS; sigs=com.pericore.util.HeapStreamTest$42 ] This was reopened automatically re: id #692509, on dev build 130918, which seems to be very different than the original bug in build 130906. Make sure to check out the exception from 2013-09-19 before closing this - it might be a different issue entirely. Created attachment 140255 [details]
stacktrace
pasted an annonomous class into a @Test method of a nessted junit class. The structure is bascially:
@RunWith(Suite.class)
@SuiteClasses(OuterTest.InnerClass.class)
public class OuterTest{
static void run(Runnable r) { r.run(); }
public static class InnerClass{
@Test
public void testSomething(){
// ---- Snip ---
run(new Runnable(){
@Override
void run(){
assertEquals("a", "b");
}
});
// ----- /Snip ----
}
}
}
pased Snip into a new @Test method of the InnerClass
See also bug 236152, which, after this exception is raised, can be triggered consistently just by clicking in the editor window in the section of pasted code (which has no hints and remains highlighted yellow). Everything seems to go back to normal after the file is saved. Created attachment 140315 [details]
full stacktrace (both exceptions
Full stacktrace of both exceptions
Created attachment 140428 [details]
testcase
The attached testcase allows the issue to be reproduced simply and repeatably in the latest dev build (130924).
* Steps:
*
* 1) in the testSomething() method, highlight the code between the two comments
* 2) Copy the highlighted code using ctrl+c
* 3) Place cursor in the testSomethingElse() method between the two comments
* 4) Paste the copied code using ctrl+v
*
* This will trigger the AssertionError consistently
reproducible Created attachment 140509 [details] testcase: Issue235620.java Updated testcase to actually produce the AssertionError reported in this bug (bug 235620). Previous (obsolete) testcase was duplicating the NullPointerException reported in bug 236155. Also, this testcase can be used to demonstrate bug 236152. Steps To Reproduce: 1) in the testSomething() method, highlight the code between the two comments 2) Copy the highlighted code using ctrl+c 3) Place cursor in the testSomethingElse() method between the two comments 4) Paste the copied code using ctrl+v This will trigger first the NPE from bug 236155, then the AssertionError from bug 235620 5) then click inside the pasted method. This will trigger the IllegalArgumentException from bug 236152 Created attachment 144942 [details]
stacktrace
Copy/Paste
Created attachment 145968 [details]
stacktrace
Copying content of one (about 5 classes) packaged into another
Fixed jet-main a7b71995b49f Integrated into 'main-silver', will be available in build *201408210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a7b71995b49f User: Tomas Zezula <tzezula@netbeans.org> Log: #235620:AssertionError: isSameType UNKNOWN |