Bug 226566 - NullPointerException at com.sun.tools.javac.code.Type.isCompound
NullPointerException at com.sun.tools.javac.code.Type.isCompound
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
7.3
All All
: P3 (vote)
: TBD
Assigned To: Dusan Balek
issues@java
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-22 21:50 UTC by Chiana
Modified: 2013-02-23 13:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
stacktrace (5.63 KB, text/plain)
2013-02-22 21:50 UTC, Chiana
Details
stacktrace (5.88 KB, text/plain)
2013-02-22 21:53 UTC, Chiana
Details
stacktrace (5.17 KB, text/plain)
2013-02-23 13:23 UTC, sreimers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2013-02-22 21:50:42 UTC
Build: NetBeans IDE Dev (Build 201302202300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows 7

User Comments:
Chiana: Accidentally typed two opening parenthesis instead of one.
Resulting code is;
sel2 = "SELECT * FROM " + t2.tableName(()) + " WHERE " + rel.mappedBy() + "=" + idO.toString();

original has: "t2.tableName + "WHERE..."
Will revert changes and see if it happens again




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.javac.code.Type.isCompound(Type.java:417)
   at com.sun.tools.javac.comp.Attr.checkIntersectionTarget(Attr.java:2453)
   at com.sun.tools.javac.comp.Attr.visitLambda(Attr.java:2343)
   at com.sun.tools.javac.tree.JCTree$JCLambda.accept(JCTree.java:1597)
   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:609)
   at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:627)
Comment 1 Chiana 2013-02-22 21:50:43 UTC
Created attachment 131758 [details]
stacktrace
Comment 2 Chiana 2013-02-22 21:53:04 UTC
Created attachment 131759 [details]
stacktrace

First it didn't happen again, but then I saved the file after removing the parenthesis so that it was unmodified when trying it.
Comment 3 sreimers 2013-02-23 13:23:04 UTC
Created attachment 131774 [details]
stacktrace


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo