Comments (13)
The problem is the line
iload 5
You're loading a value from local 5 without storing anything in it first.
from krakatau.
Is that how you load up arguments being passed in though?
from krakatau.
Well setOwner is a virtual method, so it has 6 arguments, passed in through slots 0-5. So there actually is a value in slot 5, but it's the wrong type. The last argument is a string, but you're trying to load an int out of it.
from krakatau.
Yea I figured it out and fixed it but now I have a new error! This is done w/o any major modifications, I just disassembled and removed the LocalVariableTable & LineNumberTable.
java.lang.VerifyError: (class: dan200/turtle/shared/TileEntityTurtle, method: createTurtlePlayer signature: (Lyc;IIII)Ldan200/turtle/shared/TurtlePlayer;) Inconsistent stack height 1 != 0
https://dl.dropbox.com/u/7231478/TileEntityTurtle.class
from krakatau.
https://dl.dropbox.com/u/7231478/computercraft.zip These ones?
Arg, keep clicking the close button
from krakatau.
Where is the 'any' class that TitleEntityTurtle is inheriting from? It's not in the zip you gave me.
from krakatau.
https://dl.dropbox.com/u/7231478/mcpc-plus.jar Somewhere in there
from krakatau.
Are you sure that zip contains the original TitleEntityTurtle? It looks like the tableswitch entries are messed up, so it should have never been runnable in the first place.
from krakatau.
https://dl.dropbox.com/u/7231478/computercraft.zip I reuploaded it, might of done the wrong one by accident
from krakatau.
I will retry it later, very weird bug.
from krakatau.
Ok, I found the problem. Due to a stupid mistake, the parser discards all the jump offsets when reassembling a tableswitch. And due to the way the code is written, it still runs without error, it just produces incorrect bytecode, so I didn't notice the problem during test
from krakatau.
Lol, alright
from krakatau.
Ok, try it now. It should be fixed.
from krakatau.
Related Issues (20)
- illegal class/method/package names or modifiers HOT 2
- Interest in Krakatau 2? HOT 85
- bytecode peephole optimization non-looping-loops HOT 6
- Krakatau does not generate local variables info HOT 5
- Missing undocumented opcodes. HOT 3
- Cannot reassemble HOT 4
- is there any grammar book/doc for krak2? HOT 2
- When executing the command, an error "krak2 dis --out temp" HOT 2
- Fields without access flags have an extra space in the disassembly result.
- v2 seems not to have an option to assemble multiple classes into a single .jar HOT 7
- RuntimeError: maximum recursion depth exceeded while calling a Python object HOT 1
- crash with useless trycatches HOT 3
- Assemble .j files in Directory HOT 3
- 'rU' mode generate a backtrace in python 3.11+ HOT 3
- Issue with building "cargo build --release" HOT 2
- Decompiler computes incorrect local liveness. HOT 5
- make --out optional in v2 HOT 1
- support * glob pattern in v2 HOT 4
- (Removed)
- Krakatau v2 skips non referenced constant pool entries when assembling HOT 1
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 krakatau.