Quick Search:

View detailed chart Line History

line history graph

View Mode

Logical Physical

Show Arbitrary Diff

From to

Supports revisions and tags.

Watches and RSS

History

trunk 4568 2611

latest revision download trunk

4568 annotated / raw | Diffs: previous, other | Lines: 175 ( +1, -0 )

Created: 2008-11-05 17:13:21 -0800 (2 months 1 day ago) | Author: bothner | Changeset: 4568

Add test to avoid ClassCastException on function types.
This fixes JFXC-1425 "getAttributes(boolean) reflection method throws
ClassCastException with function type attr".

Also, map java.lang.Void in function return types to the Void primitive type.

Branch point for: franca perf-sandbox

Tags: trunk-checkpoint m8

4484 annotated / raw | Diffs: previous, other | Lines: 174 ( +4, -0 )

Created: 2008-10-22 14:50:36 -0700 (2 months 15 days ago) | Author: bothner | Changeset: 4484

Add test for reflection tolerating method with generic return type.

4440 annotated / raw | Diffs: previous, other | Lines: 170 ( +3, -0 )

Created: 2008-10-17 10:33:08 -0700 (2 months 21 days ago) | Author: bothner | Changeset: 4440

Let the ClassType.getFunction reflection method find script-level functions
(or more generally: static methods) in compound classes.
This fixes JFXC-2197 "javafx.reflect getFunction() method does
not correctly find Script level functions".
Also, add FXContext.getStringType() - for consistency, and to
simplify the test case that was added.

4366 annotated / raw | Diffs: previous, other | Lines: 167 ( +13, -0 )

Created: 2008-10-08 21:26:13 -0700 (2 months 29 days ago) | Author: bothner | Changeset: 4366

Add some tests for anonymous classes.
This tests the fix for RT-968 "Overriding vars causes (seemingly unrelated)
Stylesheet errors."
Note the output 'myAnonRectRef.super: [class MyRect, class java.lang.Object]'
indicated a performance bug: It should be [class MyRect].
(That is JFXC-2165 "compiled anonymous class should extend named class,
not Object".)

4275 annotated / raw | Diffs: previous, other | Lines: 154 ( +24, -0 )

Created: 2008-10-02 17:49:59 -0700 (3 months 4 days ago) | Author: bothner | Changeset: 4275

Copied to: branches/m7-release/trunk/test/features/F24-reflection/Main.fx 4321

Added covariance test from Kenneth Russell.

Branch point for: m7-release tag:milestone-7

Tags: milestone-7

3995 annotated / raw | Diffs: previous, other | Lines: 130 ( +8, -4 )

Created: 2008-09-06 14:02:43 -0700 (4 months ago) | Author: bothner | Changeset: 3995

Add basic support for object construction, specifically setting
"parts" of the new object, as in a object literal.

Tags: milestone-6

3989 annotated / raw | Diffs: previous, other | Lines: 126 ( +7, -4 )

Created: 2008-09-05 17:18:28 -0700 (4 months 1 day ago) | Author: bothner | Changeset: 3989

Implement FXLocal.VarMember.isStatic().

Add tests for accessing script-level (static) members.

3987 annotated / raw | Diffs: previous, other | Lines: 123 ( +26, -40 )

Created: 2008-09-05 15:30:33 -0700 (4 months 1 day ago) | Author: bothner | Changeset: 3987

Skip "javafx$run$" method.

In test-suite, check for object allocation.
That fails for non-public classes, so move the test classes
into deperate files, so we can make them public.  That's a
more realistic case, anyway.

Other cleanups in test-case, such as removing (most) "Attr" words.

3981 annotated / raw | Diffs: previous, other | Lines: 137 ( +4, -0 )

Created: 2008-09-05 12:38:09 -0700 (4 months 2 days ago) | Author: bothner | Changeset: 3981

Add minimal support for boolean primitive type.

Add support for Java array types.

Change FXMember.getDeclaringType to return a FXClassType,
and rename to getDeclaringClass.

Sort Members as returned by getFunctions, getVariables etc more
fully, not just by name.  This should make the results more repeatable.
(And hopefully fix the Hudson build.)

Fix some indentation (whitespace) mistakes.

3978 annotated / raw | Diffs: previous, other | Lines: 133 ( +4, -0 )

Created: 2008-09-05 08:56:18 -0700 (4 months 2 days ago) | Author: bothner | Changeset: 3978

New FXFunctionType.  Use it.  This fixes a bug where minArgs wasn't
getting set, and so parameter types weren't printed.

In makeTypeRef, treat a TypeVariable as Object.  This is a kludge,
but fixes a ClassCastException and is good enough for now.

3967 annotated / raw | Diffs: previous, other | Lines: 129 ( +4, -4 )

Created: 2008-09-03 23:23:53 -0700 (4 months 3 days ago) | Author: bothner | Changeset: 3967

Rename getMethod/getMethods to getFunction/getFunctions.

Partial support for object allocation.

3965 annotated / raw | Diffs: previous, other | Lines: 129 ( +9, -10 )

Created: 2008-09-03 21:38:45 -0700 (4 months 3 days ago) | Author: bothner | Changeset: 3965

Reflection classes renamed, various methods renamed,
plus a bunch of other cleanups.

3961 annotated / raw | Diffs: previous, other | Lines: 130 ( +13, -0 )

Created: 2008-09-03 17:06:43 -0700 (4 months 3 days ago) | Author: bothner | Changeset: 3961

Move anonymous FunctionTypeRef to named LocalFuntionValue class,
so it can implement LocalValueRef.

Implement setValue method, so we can set attributes.

3952 annotated / raw | Diffs: previous, other | Lines: 117 ( +13, -5 )

Created: 2008-08-31 16:00:02 -0700 (4 months 6 days ago) | Author: bothner | Changeset: 3952

Implement getAttribute(name) in a generic way.

Add test for getting a function-valued variable, and applying it.

3902 annotated / raw | Diffs: previous, other | Lines: 109 ( +19, -8 )

Created: 2008-08-26 19:15:30 -0700 (4 months 11 days ago) | Author: bothner | Changeset: 3902

Reflection: Support method enumeration, getting a named method,
and invoking a method.
Add tests.  Remove run method from test.

3876 annotated / raw | Diffs: previous, other | Lines: 98 ( +6, -6 )

Created: 2008-08-25 13:50:35 -0700 (4 months 12 days ago) | Author: bothner | Changeset: 3876

Handle reflectively getting var (field) values.
Hence improved support for mirroring values: primitives, objects, sequences.
Enhance test suite.

3814 annotated / raw | Diffs: previous, other | Lines: 98 ( +10, -10 )

Created: 2008-08-19 18:29:52 -0700 (4 months 18 days ago) | Author: rfield | Changeset: 3814

Partial JFXC-1802 : deprecation warning on use of 'attribute'
Convert remaining uses of 'attribute' to 'var'.
Conversion was done in tests, in examples, and, except in cases where interpreter syntax appeared  in the sandbox

3770 annotated / raw | Diffs: previous, other | Lines: 98 ( +2, -2 )

Created: 2008-08-14 15:55:11 -0700 (4 months 23 days ago) | Author: rfield | Changeset: 3770

Remove 'private' keyword from workspace

3750 annotated / raw | Diffs: previous, other | Lines: 98 ( +1, -1 )

Created: 2008-08-14 07:25:38 -0700 (4 months 24 days ago) | Author: rfield | Changeset: 3750

Fix lineends

3749 annotated / raw | Diffs: previous, other | Lines: 98 ( +2, -2 )

Created: 2008-08-13 23:46:52 -0700 (4 months 24 days ago) | Author: rfield | Changeset: 3749

This just in, while I was finishing my last commit, the decision was made that the name for the script launch function should be 'run':

 function run() { ... }

This commit makes that change.

3748 annotated / raw | Diffs: previous, other | Lines: 98 ( +7, -5 )

Created: 2008-08-13 22:25:15 -0700 (4 months 24 days ago) | Author: rfield | Changeset: 3748

This commit, among many other things, implements the variable initialization mechanism detailed in the email thread --

 Problem: script-level variable initialization and script bodies

Including

 function main() { ... }

To declare the main-code executed on launch.

Fixed JFXC-1769 : script level var not initialized in time
Revamp script variable initialization
With regression test.

Fixed JFXC-1761 : initialize$() on script-level not executed
Initialization put in proper place now
With regression test.

Fixed JFXC-1646 : variable visibility issue
On replace no longer changes visibility
With regression test.

Fixed JFXC-1721 : Script.fx: 'var a = 0; Script.a' fails
Script-private class access now works.
With regression test.

Partial JFXC-1250 : Visibility modifiers
Accessibility modifiers now work consistently (if not yet completely implemented)
Positive regression test: things are, at least, as accessible as they should be.

Tests and demoes updated to new rules for main-code.

A new bug and a new case of an old bug are exposed by these changes -- as reflected in tests moved to currently-failing.

Two follow-on task still need to be implemented.

3526 annotated / raw | Diffs: previous, other | Lines: 96 ( +33, -7 )

Created: 2008-07-25 16:31:15 -0700 (5 months 12 days ago) | Author: bothner | Changeset: 3526

Skip "Inherited" methods.
When scanning for attributes, search Class's fields, rather than methods.
This has the advantage that it also handles non-compound classes.
It also matches what JavafxClassReader does current.
Update test cases to match improved functionality.

2713 annotated / raw | Diffs: previous, other | Lines: 70 ( +45, -4 )

Created: 2008-05-16 14:50:06 -0700 (7 months ago) | Author: bothner | Changeset: 2713

Implement enumeration of methods and attributes of a class.

This includes mapping Java Type objects to JavaFX TypeRef objects.

I also changed the API.  Most obviously MemberHandler (which
was responsible for "handling" the member) was replaced
by a MethodFilter (which normally has no side-effect).

Test the new functionality, and made the output more readable,
helped by recent support for 'for' on Iterable values.

Branch point for: technology-preview-1 uicontrols

Tags: 2008-05-19 2008-05-26 2008-06-02 2008-06-09 2008-06-16 2008-06-23 2008-06-30 2008-07-07

2611 new annotated / raw | Lines: 29 ( +29, -0 )

Created: 2008-04-19 17:27:23 -0700 (8 months ago) | Author: bothner | Changeset: 2611

New tests for javafx.reflect.

Branch point for: javaone-2008

Tags: 2008-04-21 2008-04-28 2008-05-05 2008-05-12

Crucible: Open Source License registered to Atlassian.
Atlassian Crucible, painless code review. (Version:1.6.1 Build:build-r20568 2008-09-30) - Administration - Page generated 2009-01-07 12:40 -0800