Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Issue 8515024: Require legacy form of type parameters in factories and report errors if a factory class does not... (Closed)

Created:
9 years, 1 month ago by srdjan
Modified:
9 years, 1 month ago
Reviewers:
jimhug, regis, ahe, ngeoffray
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Require legacy form of type parameters in factories and report errors if a factory class does not have a required parametrized type (fixes crashes in VM). Fix frog code, however, there are frogs problem with --compileall: leg/util/link_implementation.dart:38:12: error: wrong number of arguments, expected 0 but found 2 return new Link<T>(element, this); ^^^^^^^^^^^^^^^^^^^^^^^^^^ Committed: https://code.google.com/p/dart/source/detail?r=1464

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 9

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M frog/leg/util/link_implementation.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M tests/language/src/NonParameterizedFactoryTest.dart View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
srdjan
9 years, 1 month ago (2011-11-11 01:05:44 UTC) #1
regis
LGTM http://codereview.chromium.org/8515024/diff/2002/frog/leg/util/link_implementation.dart File frog/leg/util/link_implementation.dart (right): http://codereview.chromium.org/8515024/diff/2002/frog/leg/util/link_implementation.dart#newcode5 frog/leg/util/link_implementation.dart:5: class LinkFactory<T> { Can you please add: // ...
9 years, 1 month ago (2011-11-11 01:11:06 UTC) #2
srdjan
http://codereview.chromium.org/8515024/diff/2002/frog/leg/util/link_implementation.dart File frog/leg/util/link_implementation.dart (right): http://codereview.chromium.org/8515024/diff/2002/frog/leg/util/link_implementation.dart#newcode5 frog/leg/util/link_implementation.dart:5: class LinkFactory<T> { On 2011/11/11 01:11:07, regis wrote: > ...
9 years, 1 month ago (2011-11-11 01:18:11 UTC) #3
ngeoffray
http://codereview.chromium.org/8515024/diff/7006/tests/language/src/NonParameterizedFactoryTest.dart File tests/language/src/NonParameterizedFactoryTest.dart (right): http://codereview.chromium.org/8515024/diff/7006/tests/language/src/NonParameterizedFactoryTest.dart#newcode10 tests/language/src/NonParameterizedFactoryTest.dart:10: // A factory must be parametrized. Use legacy form. ...
9 years, 1 month ago (2011-11-11 10:09:44 UTC) #4
jimhug
lgtm But I'm adding Peter as a reviewer since I honestly don't understand the current ...
9 years, 1 month ago (2011-11-11 14:48:29 UTC) #5
ahe
Unfortunately, the change to the test is not correct. I'm having a headache today so ...
9 years, 1 month ago (2011-11-11 14:54:30 UTC) #6
srdjan
On 2011/11/11 10:09:44, ngeoffray wrote: > http://codereview.chromium.org/8515024/diff/7006/tests/language/src/NonParameterizedFactoryTest.dart > File tests/language/src/NonParameterizedFactoryTest.dart (right): > > http://codereview.chromium.org/8515024/diff/7006/tests/language/src/NonParameterizedFactoryTest.dart#newcode10 > ...
9 years, 1 month ago (2011-11-11 16:31:04 UTC) #7
srdjan
http://codereview.chromium.org/8515024/diff/7006/tests/language/src/NonParameterizedFactoryTest.dart File tests/language/src/NonParameterizedFactoryTest.dart (right): http://codereview.chromium.org/8515024/diff/7006/tests/language/src/NonParameterizedFactoryTest.dart#newcode11 tests/language/src/NonParameterizedFactoryTest.dart:11: class Factory<T> { On 2011/11/11 14:54:30, ahe wrote: > ...
9 years, 1 month ago (2011-11-11 16:33:39 UTC) #8
srdjan
9 years, 1 month ago (2011-11-11 16:56:01 UTC) #9
http://codereview.chromium.org/8515024/diff/14001/frog/leg/util/link_implemen...
File frog/leg/util/link_implementation.dart (right):

http://codereview.chromium.org/8515024/diff/14001/frog/leg/util/link_implemen...
frog/leg/util/link_implementation.dart:5: class LinkFactory {
Note the change: Instead of putting the type argument in the wrong place, I am
eliminating the type argument until it is properly implemented.

Powered by Google App Engine
This is Rietveld 408576698