Comments (10)
@jarthana, @mpalat - I am following up.
from eclipse.jdt.core.
I suggest you disable the test by prefixing with _ and merge a commit to master - otherwise we are going to see a failing tests on all PRs until this is resolved.
Yes please. All PR builds are failing due to this for more than 4 days now.
from eclipse.jdt.core.
Code generated for the constructor is
stack=2, locals=2, args_size=1
0: new #8 // class X$1
3: dup
4: invokespecial #10 // Method X$1."<init>":()V
7: astore_1
8: aload_0
9: invokespecial #12 // Method java/lang/Object."<init>":()V
12: return
In the call stack below, we compute the receiverAndArgsSize
to be 2 - that looks suspect to me compared to the signature of the <init> method invokespecialed which is **()V**
TypeAnnotationCodeStream(CodeStream).invoke(byte, MethodBinding, TypeBinding, TypeReference[]) line: 4785
TypeAnnotationCodeStream.invoke(byte, MethodBinding, TypeBinding, TypeReference[]) line: 132
QualifiedAllocationExpression.generateCode(BlockScope, CodeStream, boolean) line: 220
LocalDeclaration.generateCode(BlockScope, CodeStream) line: 174
ConstructorDeclaration.internalGenerateCode(ClassScope, ClassFile) line: 459
ConstructorDeclaration.generateCode(ClassScope, ClassFile) line: 310
TypeDeclaration.generateCode(ClassFile) line: 756
TypeDeclaration.generateCode(CompilationUnitScope) line: 826
CompilationUnitDeclaration.generateCode() line: 412
CompilationUnitProblemFinder(Compiler).resolve(CompilationUnitDeclaration, ICompilationUnit, boolean, boolean, boolean) line: 1074
CompilationUnitProblemFinder.process(CompilationUnit, SourceElementParser, WorkingCopyOwner, Map<String,CategorizedProblem[]>, boolean, int, IProgressMonitor) line: 272
CompilationUnit.buildStructure(OpenableElementInfo, IProgressMonitor, Map<IJavaElement,IElementInfo>, IResource) line: 186
CompilationUnit(Openable).generateInfos(IElementInfo, Map<IJavaElement,IElementInfo>, IProgressMonitor) line: 245
CompilationUnit(JavaElement).openWhenClosed(IElementInfo, boolean, IProgressMonitor) line: 585
CompilationUnit.makeConsistent(int, boolean, int, Map<String,CategorizedProblem[]>, IProgressMonitor) line: 1137
ReconcileWorkingCopyOperation.makeConsistent(CompilationUnit) line: 166
ReconcileWorkingCopyOperation.executeOperation() line: 92
ReconcileWorkingCopyOperation(JavaModelOperation).run(IProgressMonitor) line: 740
ReconcileWorkingCopyOperation(JavaModelOperation).runOperation(IProgressMonitor) line: 805
CompilationUnit.reconcile(int, int, WorkingCopyOwner, IProgressMonitor) line: 1311
ASTConverterSuperAfterStatements(AbstractASTTests).buildASTs(int, String, ICompilationUnit, boolean, boolean, boolean) line: 464
ASTConverterSuperAfterStatements(AbstractASTTests).buildASTs(String, ICompilationUnit, boolean, boolean, boolean) line: 530
ASTConverterSuperAfterStatements(AbstractASTTests).buildAST(String, ICompilationUnit, boolean, boolean, boolean) line: 378
ASTConverterSuperAfterStatements(AbstractASTTests).buildAST(String, ICompilationUnit, boolean) line: 369
ASTConverterSuperAfterStatements(AbstractASTTests).buildAST(String, ICompilationUnit) line: 356
ASTConverterSuperAfterStatements.test004() line: 224
In short I think the warning is good and is pointing to a problem in the product.
from eclipse.jdt.core.
In this call stack below codeStream.stackDepth becomes -1 which is illegal.
TypeAnnotationCodeStream(CodeStream).astore_1() line: 552
TypeAnnotationCodeStream(CodeStream).store(LocalVariableBinding, boolean) line: 7528
LocalDeclaration.generateCode(BlockScope, CodeStream) line: 182
ConstructorDeclaration.internalGenerateCode(ClassScope, ClassFile) line: 459
ConstructorDeclaration.generateCode(ClassScope, ClassFile) line: 310
TypeDeclaration.generateCode(ClassFile) line: 756
TypeDeclaration.generateCode(CompilationUnitScope) line: 826
CompilationUnitDeclaration.generateCode() line: 412
from eclipse.jdt.core.
Manoj, please follow up. Stack traces above point to the problem spots.
from eclipse.jdt.core.
Manoj, please follow up. Stack traces above point to the problem spots.
Sure Srikanth.. let me take a look
from eclipse.jdt.core.
I suggest you disable the test by prefixing with _ and merge a commit to master - otherwise we are going to see a failing tests on all PRs until this is resolved. Thanks. Not just jdt/core others will see this failure too and may be puzzled: see #2194
from eclipse.jdt.core.
Found you! To check why my PR build failed I incrementally merged commits from master into BETA_JAVA22. It was when I merged #2171 that this test started to fail. Looks like this is old news for you guys :)
On the way I was puzzled about the relation between BETA_JAVA22 and #2181: Neither EGit nor github seems to show any relation although reportedly the branch was merged, Egit shows it as if the entire branch BETA_JAVA22 was squashed into a single commit??
Anybody else seeing this, too?
Right when I was about to complain, I discovered that blame still works across this missing merge-link. How is that possible?
from eclipse.jdt.core.
@jarthana could you answer this question please ? Thanks.
from eclipse.jdt.core.
On the way I was puzzled about the relation between BETA_JAVA22 and #2181: Neither EGit nor github seems to show any relation although reportedly the branch was merged, Egit shows it as if the entire branch BETA_JAVA22 was squashed into a single commit??
Never mind, my EGit history view had "Show first parent only" enabled (don't know why). Disabling that option revealed the missing link:
Sorry for the noise.
from eclipse.jdt.core.
Related Issues (20)
- Request for a new method in IVariableBinding to retrieve the original binding of a variable captured by a Lambda
- [Enhanced switch] Case null disallowed when switching on arrays HOT 1
- Eclipse 2024-03 reports unclosed closeable for whitelisted StreamEx HOT 3
- [Java 22] HierarchicalASTVisitor must be updated to reflect a change in the ASTNode hierarchy HOT 1
- Challenge exception inference HOT 3
- rephrase compiler messages: move most significant info to the beginning
- Calling `JavaProject.setModuleDescription()` should invalidate the resolved classpath HOT 1
- [22] Byte code backward compatibility for compilation targets < 22 violated with '-proceedOnError', because parser falsely identifies unnamed class HOT 1
- Minor: Extract method from method in nested static class to outer class looses class variable
- Resorce Leak compiler error/warning (detection) has some problem HOT 13
- Could LambdaExpression.analyseExceptions() cause problematic side-effects? HOT 1
- Review the various steps in completeTypeBindings
- Reconsider contracts for derived type bindings HOT 1
- [23] Top Level Bug for Java 23 Support for JDT.Core
- [23] General Release Activities
- Failing test on master build HOT 1
- java.lang.StringTemplate versus org.eclipse.jdt.internal.compiler.ast.StringTemplate HOT 2
- Use "Implicitly declared class" instead of unnamed class consistently
- Internal compiler error using Vertx in Quarkus HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse.jdt.core.