diff --git a/pyjvm/class_loader.py b/pyjvm/class_loader.py index eccfba6..1b05dbd 100644 --- a/pyjvm/class_loader.py +++ b/pyjvm/class_loader.py @@ -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 diff --git a/pyjvm/frame.py b/pyjvm/frame.py index f3f8fb4..238cacb 100644 --- a/pyjvm/frame.py +++ b/pyjvm/frame.py @@ -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 diff --git a/pyjvm/ops/ops_invokeinterface.py b/pyjvm/ops/ops_invokeinterface.py index f541038..138565c 100644 --- a/pyjvm/ops/ops_invokeinterface.py +++ b/pyjvm/ops/ops_invokeinterface.py @@ -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 diff --git a/pyjvm/ops/ops_invokestatic.py b/pyjvm/ops/ops_invokestatic.py index 9d43f33..37c124f 100644 --- a/pyjvm/ops/ops_invokestatic.py +++ b/pyjvm/ops/ops_invokestatic.py @@ -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 diff --git a/pyjvm/ops/ops_invokevirtual.py b/pyjvm/ops/ops_invokevirtual.py index 5acea82..07d14a7 100644 --- a/pyjvm/ops/ops_invokevirtual.py +++ b/pyjvm/ops/ops_invokevirtual.py @@ -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 diff --git a/pyjvm/platform/java/lang/clazz.py b/pyjvm/platform/java/lang/clazz.py index cb88a54..609a10b 100644 --- a/pyjvm/platform/java/lang/clazz.py +++ b/pyjvm/platform/java/lang/clazz.py @@ -19,7 +19,7 @@ # NOT FULLY IMPLEMENTED!!!! # JUST ENOUGHT TO MAKE IT WORK # -# Constructor paremeters always empty +# Constructor parameters always empty # import logging diff --git a/pyjvm/platform/sun/reflect/nativeconstructoraccessorimpl.py b/pyjvm/platform/sun/reflect/nativeconstructoraccessorimpl.py index 32419c9..0471eed 100644 --- a/pyjvm/platform/sun/reflect/nativeconstructoraccessorimpl.py +++ b/pyjvm/platform/sun/reflect/nativeconstructoraccessorimpl.py @@ -36,7 +36,7 @@ def sun_reflect_NativeConstructorAccessorImpl_newInstance0__Ljava_lang_reflect_C frame.stack.append(iref) method = clazz.find_method("", 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] diff --git a/pyjvm/throw.py b/pyjvm/throw.py index e52173a..16457ce 100644 --- a/pyjvm/throw.py +++ b/pyjvm/throw.py @@ -17,7 +17,7 @@ class JavaException(Exception): - '''PY excpetion. + '''PY exception. Real heap reference is stored in ref ''' diff --git a/pyjvm/utils.py b/pyjvm/utils.py index 3aa8fea..20fba5a 100644 --- a/pyjvm/utils.py +++ b/pyjvm/utils.py @@ -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 diff --git a/pyjvm/vm.py b/pyjvm/vm.py index 2742f66..b8d23c5 100644 --- a/pyjvm/vm.py +++ b/pyjvm/vm.py @@ -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: