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
Inner class methods not inlined when compiled separately #4925
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4925?orig=1 |
@paulp said: public void baz();
Code:
Stack=2, Locals=2, Args_size=1
0: new #7; //class bip/A
3: dup
4: invokespecial #11; //Method bip/A."<init>":()V
7: astore_1
8: aload_1
9: invokevirtual #15; //Method bip/A.inner:()Lbip/A$Inner;
12: pop
13: getstatic #21; //Field scala/Predef$.MODULE$:Lscala/Predef$;
16: bipush 7
18: invokestatic #27; //Method scala/runtime/BoxesRunTime.boxToInteger:(I)Ljava/lang/Integer;
21: invokevirtual #31; //Method scala/Predef$.println:(Ljava/lang/Object;)V
24: return So I'm closing this, but if there is still an issue which is being obscured by the empty package thing let me know. |
@TiarkRompf said: |
@paulp said: |
@paulp said:
|
@paulp said: |
Compile with:
Expected behavior would be to inline
foo
, as correctly happens when both files are compiled together.Likely cause:
ICodeReader
overridesClassfileParser.classNameToSymbol
but does not replicate the logic that deals with inner classes (i.e. tryinnerClasses.get(name)
object before tryingdefinitions.getClass(name)
)The text was updated successfully, but these errors were encountered: