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

docs: Fix a few typos #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyjvm/class_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def add_fields(jc, constant_pool, data): # list of (flag, name, desc)


def default_for_type(desc):
'''Default values for primiteves and refs'''
'''Default values for primitives and refs'''
if desc == "I":
return 0
elif desc == "J": # long
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


class Frame(object):
'''Frame is created for every method invokation'''
'''Frame is created for every method invocation'''

def __init__(self, _thread, _this_class, _method, _args=[], _desc=""):
self.thread = _thread
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/ops/ops_invokeinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def invokeinterface(frame):
vm_obj_call(frame, args, method_name, method_signature)
return

# ignore signute polimorphic method
# ignore signature polymorphic method
instance = frame.vm.heap[args[0][1]]
klass = instance.java_class
method = None
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/ops/ops_invokestatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def invokestatic(frame):
assert method_signature is not None

if klass_name == "sun/misc/VM" and method_name == "isBooted":
# shortcut, to be remvoed
# shortcut, to be removed
frame.stack.append(1)
return

Expand Down
2 changes: 1 addition & 1 deletion pyjvm/ops/ops_invokevirtual.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def invokevirtual(frame):
vm_obj_call(frame, args, method_name, method_signature)
return

# ignore signute polimorphic method
# ignore signature polymorphic method
instance = frame.vm.heap[args[0][1]]
klass = instance.java_class
method = None
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/platform/java/lang/clazz.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# NOT FULLY IMPLEMENTED!!!!
# JUST ENOUGHT TO MAKE IT WORK
#
# Constructor paremeters always empty
# Constructor parameters always empty
#

import logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def sun_reflect_NativeConstructorAccessorImpl_newInstance0__Ljava_lang_reflect_C
frame.stack.append(iref)
method = clazz.find_method("<init>", signature)

# actully running constructor in exclusive mode
# actually running constructor in exclusive mode
pvm_thread = Thread(frame.vm, frame.vm.top_thread_ref)
pvm_thread.is_alive = True
m_args = [None]*method[1]
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/throw.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


class JavaException(Exception):
'''PY excpetion.
'''PY exception.

Real heap reference is stored in ref
'''
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def args_count(desc):


def _args_count(desc):
'''Recursive parsing for method signuture'''
'''Recursive parsing for method signature'''
char_ = desc[0]
if char_ == ")":
return 0
Expand Down
2 changes: 1 addition & 1 deletion pyjvm/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def run_thread(self, thread, quota=-1):
For each byte code specific operation function is called.
Operation can throw exception.
Thread may be busy (e.g. monitor is not available).
Returns from syncronized methods are handled.
Returns from synchronized methods are handled.
'''
frame_stack = thread.frame_stack
while len(frame_stack) > 0:
Expand Down