kindlich
d02abd30c3
Fix generic call arguments being overridden by the generic mapper's selfmapping
4 jaren geleden
kindlich
bc7f15b8ca
Match vararg types implicitly
4 jaren geleden
kindlich
06b0859ce2
Some method matching stuff with equals
4 jaren geleden
kindlich
0880bc8dc2
JavaNativeModule: Added some suppress statements for raw use of types
It's unavoidable at times
4 jaren geleden
kindlich
916a4dd121
Scripting Engine: Moved Creaton of JavaByteCodeRunUnit to own method to make it accessible from the outside
4 jaren geleden
kindlich
6e70f7453e
JavaNativeModule: LoadStatic now uses already existing method(s) if present
4 jaren geleden
kindlich
959618f7fb
JavaNativeModule: CompiledModules now retrieve all compiled information from parent modules
4 jaren geleden
kindlich
5d07a9331d
JavaNativeModule: Allow ZenMethod annotation to be used alongside the others
4 jaren geleden
kindlich
7134ba06b3
JavaNativeModule: Allow getters in Expansions
4 jaren geleden
kindlich
7cd318a1ce
JavaBytecode: Fixed Contains check being inversed
4 jaren geleden
kindlich
8624e28045
Make Optional type validation use Equals instead of reference equals
Background: Not every storedType int is the same if they come from different modules or so?
4 jaren geleden
kindlich
a7a7f84159
JavaNativeModule: Add type parameter infos from dependend modules
Background: Otherwise they will throw Exceptions because the class definitions are there but not the type infos
4 jaren geleden
kindlich
710d29a45a
JavaNativeModule: Fixed Method selection for Functional interfaces
Background: We only checked public nondefault, that matched for public statics as well.
Now checks for public nodefault abstract
Also TODO: Functional Type may not be part of functional Method's signature
4 jaren geleden
kindlich
ee949a7bd1
JavaNative: Moved loading of method return type to a latter time
Background: If the return type was a generic parameter, that early it wouldn't have been populated yet, and why load the return type as first thing in a method anyways?
4 jaren geleden
kindlich
73cccd9a35
Fix approximate member choosing when Inherited methods are involved
Background: Approximate member choosing is based only on the types, so an overridden method would match twice, but with different priority. Fixes this by including a priority check before deciding whether or not to throw an error
4 jaren geleden
kindlich
8bc801385c
Fix using parent's members in TypeMembers
Background: For some classes the TypeId does not have the super class but the definition has. Now checking both
4 jaren geleden
kindlich
8773d157ac
JavaNativeModule: Don't add methods whose signature was overriden to child class
Background: Javac creates an ACC_BRIDGE method to deal with the signature change (either a covariant parameter or contravariant return type change).
Hence there are two declared methods, one that is the old one, one that is new. For Signatures where only the return type changed this caused both to be registered and an ambiguity later where ZC could not determine which to choose
4 jaren geleden
kindlich
fb280d54ed
CheckCast after MapGet if not primitive
Required for Type assertion, else a 'Object is not assignable to X' will follow
4 jaren geleden
kindlich
e11d51a9a9
Allow empty ()
Required for lambdas
4 jaren geleden
kindlich
d04d5d57b6
JavaCompiler: Fix class names
4 jaren geleden
kindlich
cd038e6f9b
Made ScriptingExample read from subdirectories
.. Unless they have 'nope' in their name
4 jaren geleden
kindlich
66ec3e003b
Box Map keys when indexGetting
4 jaren geleden
kindlich
59f5cb9a0a
Made ScriptingExample log to Console
4 jaren geleden
kindlich
5cba6fc7b0
Checkcast may not work that well with primitives ^^'
4 jaren geleden
kindlich
c984531cc3
More work on generics
This time for nonexpansions.
The method signatures should be calculated correctly now, though they are still only filled with nulls
4 jaren geleden
kindlich
4ad3331928
Added Signature to JavaField constructor
Was an instance field all along, but always set to null
4 jaren geleden
kindlich
1a3075532c
WIP: More work on Generics in Expansions
4 jaren geleden
kindlich
8f1960209a
WIP: More work on generic parameters in expansions
4 jaren geleden
kindlich
45029d5e80
Fixed compilation with generic arguments
4 jaren geleden
kindlich
a96a0f41c0
Fixed JNM#getFunctionalInterfaceMethod
Now it doesn't select the first nondefault method but the first public nondefault method
4 jaren geleden
kindlich
5a9962b07a
[WIP] Skip member evaluation if class should not be loaded in the first place
Reason behind this is to prevent NoClassDefFoundErrors for working with Sided classes in MCF
4 jaren geleden
kindlich
5abd2b5b01
[WIP] Compile default values in functions
4 jaren geleden
kindlich
ab219cfc98
Merge remote-tracking branch 'jared/development' into genericParams
4 jaren geleden
Jared
eaa9db6cad
Merge remote-tracking branch 'kindlich/development' into development
4 jaren geleden
kindlich
fe4fd443d5
Merge remote-tracking branch 'jared/development' into genericParams
4 jaren geleden
Jared
1895fed5e5
update ASM to latest
4 jaren geleden
kindlich
48ccb11add
Output now creates missing folders
4 jaren geleden
kindlich
c4acf675e8
[WIP] Duplicate class names, pt. II
Fixed functions not working properly
4 jaren geleden
kindlich
422ee64c85
[WIP, I have no idea what I'm doing]Get types declared in StdLibs from the registry
4 jaren geleden
kindlich
6d51a81766
Fixed LocalVariableGet calls when inside a lambda
4 jaren geleden
kindlich
4915d51d3f
Added event stub to scripting example
4 jaren geleden
kindlich
2518c6b512
[WIP, I have no idea what I'm doing] Check generic type arguments when comparing if a type extends another
4 jaren geleden
kindlich
659dd13020
Fixed NPE if a return statement without expression was used
4 jaren geleden
kindlich
f9d96e18de
Fixed using signature instead of description when checking if a bridge methos is necessary
4 jaren geleden
kindlich
bf1ecfacd3
Fixed NPE in ScriptingExample due to nonpushing visitor not loaded
4 jaren geleden
kindlich
8dd4cef26d
Added type mapping when generic base type is a class
4 jaren geleden
kindlich
ff6514edae
[WIP, I have no idea what I'm doing] Trying to get generic parameters working
Let's see if putting them all into one TypeVariableContext works..?
Also, a lambda that returns void cannot conclude the generic header. How should we deal with this?
5 jaren geleden
kindlich
49043637e1
[WIP, not sure] Added generic types checking if their bounds are met
Before it they would simply return false, even if a type would match the bounds
5 jaren geleden
kindlich
1d49da3a9c
Fixed incorrect method signature on lambda methods
They used the signature instead of the description, so there was an AIOOB when the compiler tried to cast a 'TT;' as that only exists in signatures, not in descriptions
5 jaren geleden
kindlich
f85ee75d6f
Fixed NPE caused by Statement#getReturnType returning Null
5 jaren geleden