Bug 237828 - AssertionError: Method parameter without PARAMETER flag
AssertionError: Method parameter without PARAMETER flag
Product: java
Classification: Unclassified
Component: Compiler
All All
: P2 (vote)
: Dev
Assigned To: Dusan Balek
Depends on:
  Show dependency treegraph
Reported: 2013-10-30 20:46 UTC by michbarsinai
Modified: 2014-03-05 14:38 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT

stacktrace (6.08 KB, text/plain)
2013-10-30 20:47 UTC, michbarsinai
stacktrace (7.46 KB, text/plain)
2013-12-17 23:40 UTC, janario
stacktrace (4.86 KB, text/plain)
2014-01-08 13:33 UTC, aldobrucale
stacktrace (5.37 KB, text/plain)
2014-01-18 12:09 UTC, Exceptions Reporter
stacktrace (6.65 KB, text/plain)
2014-01-23 04:39 UTC, michbarsinai
stacktrace (6.73 KB, text/plain)
2014-01-23 18:27 UTC, chuprin
stacktrace (7.09 KB, text/plain)
2014-02-20 21:55 UTC, Michel Graciano
stacktrace (7.09 KB, text/plain)
2014-02-21 10:40 UTC, Michel Graciano

Note You need to log in before you can comment on or make changes to this bug.
Description michbarsinai 2013-10-30 20:46:59 UTC
Build: NetBeans IDE Dev (Build 201310250001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b48, Java(TM) SE Runtime Environment, 1.7.0_40-ea-b29
OS: Mac OS X

User Comments:
michbarsinai: Working on java code, inside a try/catch block. Note that the block was not complete, it had the try { ... } but not the catch clause. The "try {" was marked with an error.

java.lang.AssertionError: Method parameter without PARAMETER flag
   at com.sun.tools.javac.util.Assert.error(Assert.java:133)
   at com.sun.tools.javac.util.Assert.check(Assert.java:94)
   at com.sun.tools.javac.comp.Flow$AbstractAssignAnalyzer.visitMethodDef(Flow.java:1774)
   at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitMethodDef(Flow.java:2546)
   at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
   at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
Comment 1 michbarsinai 2013-10-30 20:47:01 UTC
Created attachment 141720 [details]
Comment 2 janario 2013-12-17 23:40:07 UTC
Created attachment 143281 [details]

coding. Adding another parameter in a method
Comment 3 aldobrucale 2014-01-08 13:33:42 UTC
Created attachment 143711 [details]

added a semicolon between a parameter type and its name
Comment 4 Exceptions Reporter 2014-01-18 12:09:50 UTC
Created attachment 144100 [details]

Exception after javadoc template insertion.
Comment 5 michbarsinai 2014-01-23 04:39:54 UTC
Created attachment 144277 [details]

During code completion that included enums, and was for a parameter of another method.
Comment 6 chuprin 2014-01-23 18:27:56 UTC
Created attachment 144316 [details]

Hi all. I added method with code completion and change "Object" to specified variable name
Comment 7 Michel Graciano 2014-02-20 21:55:36 UTC
Created attachment 145453 [details]

Coping some classes with refactoring activated (Lombok active)
Comment 8 Michel Graciano 2014-02-21 10:40:40 UTC
Created attachment 145463 [details]

Coping some class files from a package to another (Lombok active). It does not happens at 7.4
Comment 9 Michel Graciano 2014-02-21 10:42:31 UTC
It looks like to be a regression since I can't reproduce it at 7.4.
Comment 10 Dusan Balek 2014-02-21 11:27:25 UTC
Could you please create a simple reproducible test case and attach it to the issue? Thanks.
Comment 11 Alexander Simon 2014-02-21 18:23:30 UTC
21 reports => P2
Comment 12 Jan Lahoda 2014-02-21 20:21:41 UTC
Which exact Lombok version is that? I think Lombok was fixed to include the PARAMETER flag on some places some time ago. A testcase to reproduce would help to determine whether that was sufficient to cover this situation or not.
Comment 13 Michel Graciano 2014-02-22 20:18:21 UTC
I will check the Lombok version we are using, but AFAIR it is the latest one. So far, I was unable to create a sample to reproduce it. The only think I was able to reproduce was issue #242191. Monday I will check this issue as soon as I get back to work.

Comment 14 Michel Graciano 2014-03-05 14:38:08 UTC
We have been using Lombok 1.12.4. I am not able to reproduce it yet.

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