[jira] [Commented] (NETBEANS-715) Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source

2018-08-16 Thread vikas kumar prabhakar (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16582397#comment-16582397
 ] 

vikas kumar prabhakar commented on NETBEANS-715:


The issue is reproducible with nb-javac plugin. The editor is working fine 
without nb-javac plugin but it gave ClasscastException with nb-javac plugin.

Test sample code:

{{public static void main(String[] args) {}}
{{    //}}
{{    System.out.println(true ? "" : (""));}}
{{}}}

> Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source
> --
>
> Key: NETBEANS-715
> URL: https://issues.apache.org/jira/browse/NETBEANS-715
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints  Annotations
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> Java: 10; Java HotSpot(TM) 64-Bit Server VM 10+46
> Runtime: Java(TM) SE Runtime Environment 10+46
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
> User directory: Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Priority: Major
>  Labels: ClassCastException, GUI, Regression, annotations, 
> editor, hints
> Attachments: ClassCastException.logs, JPanelIbaDetails.dump, 
> messages.log
>
>
> h2. context
> *  Gradle project open
> * Panel class open in editor
> * Java debugger running
> * Adding a correction to set value for a JCheckBox field.
> h2. expected / desirable
> * Finish adding source code change
> * Move to next GUI error in debugger and consider how that should work in 
> source
> h2. actual
> *  Annotation exception
> **   stacktrace 
> {code:java}
> An error occurred during parsing of 
> 'D:\work\products\FourAbs\FourAbsClientLibrary\src\main\java\au\com\fourtel\fourabs\client\ibas\JPanelIbaDetails.java'.
>  Please report a bug against java/source and attach dump file 
> 'Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs\var\log\JPanelIbaDetails.dump'.
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>   at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>   at 
> com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>   ...
> {code}
> h2.  Impact
> * Interrupts work 
> * Not sure if editing is stable 
> h2.  supporting information
> *  JPanelIbaDetails.dump
> * messages.log
> *  AssertionError.logs - contains ...
> **  stacktrace
> **  UI log
> **  IDE log



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-715) Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source

2018-06-27 Thread Jeffrey Morlan (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16525507#comment-16525507
 ] 

Jeffrey Morlan commented on NETBEANS-715:
-

Here's a simple way to demonstrate this bug - start with the following method:

{{public static void main(String[] args) {}}
{{    //}}
{{    System.out.println(true ? "" : (""));}}
{{}}}

Then, type exactly 7 characters in the comment. "java.lang.ClassCastException: 
com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to 
com.sun.tools.javac.tree.JCTree$JCParens".

This is caused by stale data in ArgumentAttr.argumentTypeCache. (ArgumentAttr 
was introduced in JDK 9: https://bugs.openjdk.java.net/browse/JDK-8078093)

> Annotation: java.lang.ClassCastException While Editing Swing Panel Java Source
> --
>
> Key: NETBEANS-715
> URL: https://issues.apache.org/jira/browse/NETBEANS-715
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Hints  Annotations
>Affects Versions: 9.0
> Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> Java: 10; Java HotSpot(TM) 64-Bit Server VM 10+46
> Runtime: Java(TM) SE Runtime Environment 10+46
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_AU (nb)
> User directory: Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs
> Cache directory: Z:\tmp\.other\cache\netbeans\FourAbs-09
> Plugins:
>   * Netbeans Gradle plugin v1.4.3
>Reporter: will mason
>Priority: Major
>  Labels: ClassCastException, GUI, Regression, annotations, 
> editor, hints
> Attachments: ClassCastException.logs, JPanelIbaDetails.dump, 
> messages.log
>
>
> h2. context
> *  Gradle project open
> * Panel class open in editor
> * Java debugger running
> * Adding a correction to set value for a JCheckBox field.
> h2. expected / desirable
> * Finish adding source code change
> * Move to next GUI error in debugger and consider how that should work in 
> source
> h2. actual
> *  Annotation exception
> **   stacktrace 
> {code:java}
> An error occurred during parsing of 
> 'D:\work\products\FourAbs\FourAbsClientLibrary\src\main\java\au\com\fourtel\fourabs\client\ibas\JPanelIbaDetails.java'.
>  Please report a bug against java/source and attach dump file 
> 'Z:\tmp\.other\user\netbeans\v09.00-beta\FourAbs\var\log\JPanelIbaDetails.dump'.
> Caused: java.lang.ClassCastException: 
> com.sun.tools.javac.tree.JCTree$JCConditional cannot be cast to 
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation
>   at 
> com.sun.tools.javac.comp.ArgumentAttr$ResolvedMethodType.dup(ArgumentAttr.java:607)
>   at 
> com.sun.tools.javac.comp.ArgumentAttr.processArg(ArgumentAttr.java:240)
>   ...
> {code}
> h2.  Impact
> * Interrupts work 
> * Not sure if editing is stable 
> h2.  supporting information
> *  JPanelIbaDetails.dump
> * messages.log
> *  AssertionError.logs - contains ...
> **  stacktrace
> **  UI log
> **  IDE log



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists