Skip to content

Commit

Permalink
Java constants should work even when beginning with underscores (patc…
Browse files Browse the repository at this point in the history
…h from David Corbin - dcorbin@machturtle.com)

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@1450 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
enebo committed Dec 5, 2004
1 parent 664acdc commit 80555c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builtin/javasupport.rb
Expand Up @@ -48,7 +48,8 @@ class << self
def valid_constant_name?(name)
return false if name.empty?
first_char = name[0..0]
return first_char == first_char.upcase
return (first_char == first_char.upcase &&
first_char != first_char.downcase)
end

def create_proxy_class(constant, java_class, mod)
Expand Down

0 comments on commit 80555c9

Please sign in to comment.