Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method parameter without PARAMETER flag #7752

Open
OlexYarm opened this issue Sep 13, 2024 · 0 comments
Open

Method parameter without PARAMETER flag #7752

OlexYarm opened this issue Sep 13, 2024 · 0 comments
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix nb-javac Run nb-javac integration tests needs:triage Requires attention from one of the committers

Comments

@OlexYarm
Copy link

OlexYarm commented Sep 13, 2024

Apache NetBeans version

Apache NetBeans 22

What happened

I launched Apache NetBeans as usual on my Windows 11 desktop and Exception was reported.

Language / Project Type / NetBeans Component

JPMS

How to reproduce

It happened first time and error message said "Please report a bug against java/source and attach dump file".

Annotation: An error occurred during parsing of 'F:\ProjectsJavaFX\JfxFileContentEditor\src\main\java\com\olexyarm\jfxfilecontenteditor\JfxFileContentEditorMenuController.java'. Please report a bug against java/source and attach dump file 'C:\NetBeansCacheDir\var\log\JfxFileContentEditorMenuController_2.dump'.
Annotation: An error occurred during parsing of 'F:\ProjectsJavaFX\JfxFileContentEditor\src\main\java\com\olexyarm\jfxfilecontenteditor\JfxFileContentEditorMenuController.java'. Please report a bug against java/source and attach dump file 'C:\NetBeansCacheDir\var\log\JfxFileContentEditorMenuController_2.dump'.
Annotation: An error occurred during parsing of 'F:\ProjectsJavaFX\JfxFileContentEditor\src\main\java\com\olexyarm\jfxfilecontenteditor\JfxFileContentEditorMenuController.java'. Please report a bug against java/source and attach dump file 'C:\NetBeansCacheDir\var\log\JfxFileContentEditorMenuController_2.dump'.
An error occurred during parsing of 'F:\ProjectsJavaFX\JfxFileContentEditor\src\main\java\com\olexyarm\jfxfilecontenteditor\JfxFileContentEditorMenuController.java'. Please report a bug against java/source and attach dump file 'C:\NetBeansCacheDir\var\log\JfxFileContentEditorMenuController_2.dump'.
An error occurred during parsing of 'F:\ProjectsJavaFX\JfxFileContentEditor\src\main\java\com\olexyarm\jfxfilecontenteditor\JfxFileContentEditorMenuController.java'. Please report a bug against java/source and attach dump file 'C:\NetBeansCacheDir\var\log\JfxFileContentEditorMenuController_2.dump'.
Caused: java.lang.AssertionError: Method parameter without PARAMETER flag
	at com.sun.tools.javac.util.Assert.error(Assert.java:162)
	at com.sun.tools.javac.util.Assert.check(Assert.java:95)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitMethodDef(Flow.java:2432)
	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:916)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitClassDef(Flow.java:2384)
	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:814)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitNewClass(Flow.java:2985)
	at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1871)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scanExpr(Flow.java:2270)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitVarDef(Flow.java:2525)
	at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:1022)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:58)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitBlock(Flow.java:2537)
	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1092)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitMethodDef(Flow.java:2440)
	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:916)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.visitClassDef(Flow.java:2384)
	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:814)
	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
	at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:463)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.scan(Flow.java:2013)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.analyzeTree(Flow.java:3174)
	at com.sun.tools.javac.comp.Flow$AssignAnalyzer.analyzeTree(Flow.java:3156)
	at com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:231)
	at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1426)
	at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1390)
	at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:404)
	at com.sun.tools.javac.api.JavacTaskImpl.lambda$analyze$1(JavacTaskImpl.java:379)
	at com.sun.tools.javac.api.JavacTaskImpl.invocationHelper(JavacTaskImpl.java:152)
	at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:379)
Caused: java.lang.IllegalStateException
	at com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
	at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:765)
	at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:536)
	at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:140)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
	at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:241)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:288)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)

JfxFileContentEditorMenuController_2.zip

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11

JDK

Oracle JDK 22

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

It happened first time

Are you willing to submit a pull request?

No

@OlexYarm OlexYarm added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Sep 13, 2024
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) nb-javac Run nb-javac integration tests labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix nb-javac Run nb-javac integration tests needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

2 participants