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 247570 - AssertionError: Unexpected tree: ChequeTercero % o2 with kind: REMAINDER within: ChequeTercero % o2 with kind: REMAINDER
Summary: AssertionError: Unexpected tree: ChequeTercero % o2 with kind: REMAINDER with...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 17:23 UTC by FiruzzZ
Modified: 2016-01-09 02:41 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208653


Attachments
stacktrace (3.61 KB, text/plain)
2014-09-29 17:23 UTC, FiruzzZ
Details
stacktrace (4.43 KB, text/plain)
2015-08-25 19:29 UTC, dusty
Details
stacktrace (3.80 KB, text/plain)
2015-11-23 15:57 UTC, thruminds
Details
stacktrace (3.71 KB, text/plain)
2015-12-11 22:16 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FiruzzZ 2014-09-29 17:23:25 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Windows 7

User Comments:
GUEST: Error ao refatorar

GUEST: Working on a  method that uses reflection, somehow the error shows up in the notification panel.

FiruzzZ: I was writing a method when I pressed %% instead of &&

//in my interface Valorizable {

    public default boolean equals(Valorizable o1, Valorizable o2) {
        if (o1 instanceof ChequeTercero && o2 instanceof ChequeTercero) {




Stacktrace: 
java.lang.AssertionError: Unexpected tree: ChequeTercero % o2 with kind: REMAINDER within: ChequeTercero % o2 with kind: REMAINDER
   at com.sun.tools.javac.util.Assert.error(Assert.java:133)
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.validateAnnotatedType(Attr.java:4891)
   at com.sun.tools.javac.comp.Attr$TypeAnnotationsValidator.visitTypeTest(Attr.java:4749)
   at com.sun.tools.javac.tree.JCTree$JCInstanceOf.accept(JCTree.java:1846)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
   at com.sun.tools.javac.tree.TreeScanner.visitTypeTest(TreeScanner.java:254)
Comment 1 FiruzzZ 2014-09-29 17:23:27 UTC
Created attachment 149600 [details]
stacktrace
Comment 2 dusty 2015-08-25 19:29:38 UTC
Created attachment 155643 [details]
stacktrace

pressed ctrl+space for completion
Comment 3 thruminds 2015-11-23 15:57:04 UTC
Created attachment 157457 [details]
stacktrace

.
Comment 4 Maksim Khramov 2015-12-11 22:16:18 UTC
Created attachment 157765 [details]
stacktrace

Edit java class:

package app;

/**
 *
 * @author mkhramov
 */
public class Application {


    public static void main(String[] args) {
        Application app = new Application();
        if(app instanceof app) {
            
        }
    }
    
}

palace caret after  instanceof app and type /
The exception is thrown
Comment 6 Quality Engineering 2016-01-09 02:41:28 UTC
Integrated into 'main-silver', will be available in build *201601090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/015490523391
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #247570, #247595, #257005, and #257392 - fixed.